Flutter Engine
The Flutter Engine
|
Namespaces | |
namespace | ganesh |
namespace | graphite |
namespace | MutableTextureStates |
namespace | tess |
namespace | VulkanMemory |
namespace | wangs_formula |
Typedefs | |
using | VulkanGetProc = std::function< PFN_vkVoidFunction(const char *, VkInstance, VkDevice)> |
typedef intptr_t | VulkanBackendMemory |
typedef void * | VulkanDeviceLostContext |
typedef void(* | VulkanDeviceLostProc) (VulkanDeviceLostContext faultContext, const std::string &description, const std::vector< VkDeviceFaultAddressInfoEXT > &addressInfos, const std::vector< VkDeviceFaultVendorInfoEXT > &vendorInfos, const std::vector< std::byte > &vendorBinaryData) |
typedef SkTInternalLList< Plot > | PlotList |
using | StdSteadyClock = std::chrono::steady_clock |
using | BufferUsage = VulkanMemoryAllocator::BufferUsage |
Functions | |
void | Flush (SkSurface *surface) |
void | FlushAndSubmit (SkSurface *surface) |
ShaderErrorHandler * | DefaultShaderErrorHandler () |
constexpr int | MaskFormatBytesPerPixel (MaskFormat format) |
static constexpr SkColorType | MaskFormatToColorType (MaskFormat format) |
const char * | BlendFuncName (SkBlendMode mode) |
SkSpan< const float > | GetPorterDuffBlendConstants (SkBlendMode mode) |
ReducedBlendModeInfo | GetReducedBlendModeInfo (SkBlendMode mode) |
static constexpr bool | BlendCoeffRefsSrc (const BlendCoeff coeff) |
static constexpr bool | BlendCoeffRefsDst (const BlendCoeff coeff) |
static constexpr bool | BlendCoeffRefsSrc2 (const BlendCoeff coeff) |
static constexpr bool | BlendCoeffsUseSrcColor (BlendCoeff srcCoeff, BlendCoeff dstCoeff) |
static constexpr bool | BlendCoeffsUseDstColor (BlendCoeff srcCoeff, BlendCoeff dstCoeff, bool srcColorIsOpaque) |
static constexpr bool | BlendEquationIsAdvanced (BlendEquation equation) |
static constexpr bool | BlendModifiesDst (BlendEquation equation, BlendCoeff srcCoeff, BlendCoeff dstCoeff) |
static constexpr bool | BlendCoeffRefsConstant (const BlendCoeff coeff) |
static constexpr bool | BlendShouldDisable (BlendEquation equation, BlendCoeff srcCoeff, BlendCoeff dstCoeff) |
static constexpr bool | BlendAllowsCoverageAsAlpha (BlendEquation equation, BlendCoeff srcCoeff, BlendCoeff dstCoeff) |
BlendFormula | GetBlendFormula (bool isOpaque, bool hasCoverage, SkBlendMode xfermode) |
BlendFormula | GetLCDBlendFormula (SkBlendMode xfermode) |
SkBitmap | CreateIntegralTable (int width) |
int | ComputeIntegralTableWidth (float sixSigma) |
static float | make_unnormalized_half_kernel (float *halfKernel, int halfKernelSize, float sigma) |
static void | make_half_kernel_and_summed_table (float *halfKernel, float *summedHalfKernel, int halfKernelSize, float sigma) |
static void | apply_kernel_in_y (float *results, int numSteps, float firstX, float circleR, int halfKernelSize, const float *summedHalfKernelTable) |
static uint8_t | eval_at (float evalX, float circleR, const float *halfKernel, int halfKernelSize, const float *yKernelEvaluations) |
SkBitmap | CreateCircleProfile (float sigma, float radius, int profileWidth) |
SkBitmap | CreateHalfPlaneProfile (int profileWidth) |
static uint8_t | eval_V (float top, int y, const uint8_t *integral, int integralSize, float sixSigma) |
static uint8_t | eval_H (int x, int y, const std::vector< float > &topVec, const float *kernel, int kernelSize, const uint8_t *integral, int integralSize, float sixSigma) |
SkBitmap | CreateRRectBlurMask (const SkRRect &rrectToDraw, const SkISize &dimensions, float sigma) |
constexpr int | BlurKernelWidth (int radius) |
constexpr int | BlurLinearKernelWidth (int radius) |
constexpr bool | BlurIsEffectivelyIdentity (float sigma) |
int | BlurSigmaRadius (float sigma) |
const SkRuntimeEffect * | GetBlur2DEffect (const SkISize &radii) |
const SkRuntimeEffect * | GetLinearBlur1DEffect (int radius) |
void | Compute2DBlurKernel (SkSize sigma, SkISize radius, SkSpan< float > kernel) |
void | Compute2DBlurKernel (SkSize sigma, SkISize radius, std::array< SkV4, kMaxBlurSamples/4 > &kernel) |
void | Compute1DBlurKernel (float sigma, int radius, SkSpan< float > kernel) |
void | Compute2DBlurOffsets (SkISize radius, std::array< SkV4, kMaxBlurSamples/2 > &offsets) |
void | Compute1DBlurLinearKernel (float sigma, int radius, std::array< SkV4, kMaxBlurSamples/2 > &offsetsAndKernel) |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &w, const T &val) |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &w, const VertexWriter::Conditional< T > &val) |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &w, const VertexWriter::Skip< T > &val) |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &w, const VertexWriter::ArrayDesc< T > &array) |
template<int kCount, typename T > | |
VertexWriter & | operator<< (VertexWriter &w, const VertexWriter::RepeatDesc< kCount, T > &repeat) |
template<> | |
VertexWriter & | operator<< (VertexWriter &w, const skvx::float4 &vector) |
template<typename T > | |
VertexWriter & | operator<< (VertexWriter &&w, const T &val) |
template<> | |
VertexWriter & | operator<< (VertexWriter &w, const VertexColor &color) |
IndexWriter & | operator<< (IndexWriter &w, uint16_t val) |
IndexWriter & | operator<< (IndexWriter &w, int val) |
template<typename T > | |
IndexWriter & | operator<< (IndexWriter &&w, const T &val) |
static int | extend_5To8bits (int b) |
static int | test_table_entry (int rOrig, int gOrig, int bOrig, int r8, int g8, int b8, int table, int offset) |
static void | create_etc1_block (SkColor col, ETC1Block *block) |
static int | num_4x4_blocks (int size) |
static int | num_ETC1_blocks (int w, int h) |
static uint16_t | to565 (SkColor col) |
static void | create_BC1_block (SkColor col0, SkColor col1, BC1Block *block) |
size_t | NumCompressedBlocks (SkTextureCompressionType type, SkISize baseDimensions) |
size_t | CompressedRowBytes (SkTextureCompressionType type, int width) |
SkISize | CompressedDimensions (SkTextureCompressionType type, SkISize baseDimensions) |
SkISize | CompressedDimensionsInBlocks (SkTextureCompressionType type, SkISize baseDimensions) |
static void | fillin_ETC1_with_color (SkISize dimensions, const SkColor4f &colorf, char *dest) |
static void | fillin_BC1_with_color (SkISize dimensions, const SkColor4f &colorf, char *dest) |
void | FillInCompressedData (SkTextureCompressionType type, SkISize dimensions, skgpu::Mipmapped mipmapped, char *dstPixels, const SkColor4f &colorf) |
float | DitherRangeForConfig (SkColorType dstColorType) |
SkBitmap | MakeDitherLUT () |
bool | SkSLToHLSL (const SkSL::ShaderCaps *caps, const std::string &sksl, SkSL::ProgramKind programKind, const SkSL::ProgramSettings &settings, std::string *hlsl, SkSL::ProgramInterface *outInterface, ShaderErrorHandler *errorHandler) |
bool | SkSLToGLSL (const SkSL::ShaderCaps *caps, const std::string &sksl, SkSL::ProgramKind programKind, const SkSL::ProgramSettings &settings, std::string *glsl, SkSL::ProgramInterface *outInterface, ShaderErrorHandler *errorHandler) |
static constexpr SkColorType | CompressionTypeToSkColorType (SkTextureCompressionType compression) |
static constexpr const char * | CompressionTypeToStr (SkTextureCompressionType compression) |
bool | SkSLToWGSL (const SkSL::ShaderCaps *caps, const std::string &sksl, SkSL::ProgramKind programKind, const SkSL::ProgramSettings &settings, std::string *wgsl, SkSL::ProgramInterface *outInterface, ShaderErrorHandler *errorHandler) |
bool | MtlFormatIsDepthOrStencil (MTLPixelFormat format) |
bool | MtlFormatIsDepth (MTLPixelFormat format) |
bool | MtlFormatIsStencil (MTLPixelFormat format) |
bool | MtlFormatIsCompressed (MTLPixelFormat mtlFormat) |
const char * | MtlFormatToString (MTLPixelFormat mtlFormat) |
uint32_t | MtlFormatChannels (MTLPixelFormat mtlFormat) |
size_t | MtlFormatBytesPerBlock (MTLPixelFormat mtlFormat) |
SkTextureCompressionType | MtlFormatToCompressionType (MTLPixelFormat mtlFormat) |
bool | SkSLToMSL (const SkSL::ShaderCaps *caps, const std::string &sksl, SkSL::ProgramKind programKind, const SkSL::ProgramSettings &settings, std::string *msl, SkSL::ProgramInterface *outInterface, ShaderErrorHandler *errorHandler) |
bool | SkSLToBackend (const SkSL::ShaderCaps *caps, bool(*toBackend)(SkSL::Program &, const SkSL::ShaderCaps *, std::string *), const char *backendLabel, const std::string &sksl, SkSL::ProgramKind programKind, const SkSL::ProgramSettings &settings, std::string *output, SkSL::ProgramInterface *outInterface, ShaderErrorHandler *errorHandler) |
uint32_t | ResourceKeyHash (const uint32_t *data, size_t size) |
static void | skgpu_init_static_unique_key_once (SkAlignedSTStorage< 1, UniqueKey > *keyStorage) |
static bool | SkShouldPostMessageToBus (const UniqueKeyInvalidatedMessage &msg, uint32_t msgBusUniqueID) |
static bool | SkShouldPostMessageToBus (const UniqueKeyInvalidatedMsg_Graphite &msg, uint32_t msgBusUniqueID) |
SkISize | GetApproxSize (SkISize size) |
static int | find_info (const TArray< VulkanExtensions::Info > &infos, const char ext[]) |
void | SetupSamplerYcbcrConversionInfo (VkSamplerYcbcrConversionCreateInfo *outInfo, const VulkanYcbcrConversionInfo &conversionInfo) |
void | InvokeDeviceLostCallback (const skgpu::VulkanInterface *vulkanInterface, VkDevice vkDevice, skgpu::VulkanDeviceLostContext deviceLostContext, skgpu::VulkanDeviceLostProc deviceLostProc, bool supportsDeviceFaultInfoExtension) |
bool | SkSLToSPIRV (const SkSL::ShaderCaps *caps, const std::string &sksl, SkSL::ProgramKind programKind, const SkSL::ProgramSettings &settings, std::string *spirv, SkSL::ProgramInterface *outInterface, ShaderErrorHandler *errorHandler) |
static constexpr uint32_t | VkFormatChannels (VkFormat vkFormat) |
static constexpr size_t | VkFormatBytesPerBlock (VkFormat vkFormat) |
static constexpr SkTextureCompressionType | VkFormatToCompressionType (VkFormat vkFormat) |
static constexpr int | VkFormatIsStencil (VkFormat format) |
static constexpr int | VkFormatIsDepth (VkFormat format) |
static constexpr int | VkFormatStencilBits (VkFormat format) |
static constexpr bool | VkFormatNeedsYcbcrSampler (VkFormat format) |
static constexpr bool | SampleCountToVkSampleCount (uint32_t samples, VkSampleCountFlagBits *vkSamples) |
static constexpr bool | VkFormatIsCompressed (VkFormat vkFormat) |
template<typename T > | |
T * | GetExtensionFeatureStruct (const VkPhysicalDeviceFeatures2 &features, VkStructureType type) |
static constexpr const char * | VkFormatToStr (VkFormat vkFormat) |
const char * | ContextTypeName (skgpu::ContextType type) |
bool | IsNativeBackend (skgpu::ContextType type) |
bool | IsDawnBackend (skgpu::ContextType type) |
bool | IsRenderingContext (skgpu::ContextType type) |
Variables | |
static const int | kMaskFormatCount = static_cast<int>(MaskFormat::kLast) + 1 |
static const int | kBlendEquationCnt = static_cast<int>(BlendEquation::kLast) + 1 |
static const int | kBlendCoeffCnt = static_cast<int>(BlendCoeff::kLast) + 1 |
static constexpr int | kMaxBlurSamples = SkShaderBlurAlgorithm::kMaxSamples |
static constexpr float | kMaxLinearBlurSigma = SkShaderBlurAlgorithm::kMaxLinearSigma |
constexpr uint32_t | kDiffBit = 0x2 |
static const int | kNumETC1ModifierTables = 8 |
static const int | kNumETC1PixelIndices = 4 |
static const int | kETC1ModifierTables [kNumETC1ModifierTables][kNumETC1PixelIndices] |
constexpr int | kIsDebug = 0 |
static const int | kContextTypeCount = (int)ContextType::kLastContextType + 1 |
This file includes numerous public types that are used by all of our gpu backends.
This file includes internal types that are used by all of our gpu backends for atlases.
using skgpu::BufferUsage = typedef VulkanMemoryAllocator::BufferUsage |
Definition at line 19 of file VulkanMemory.cpp.
typedef SkTInternalLList<Plot> skgpu::PlotList |
Definition at line 538 of file AtlasTypes.h.
using skgpu::StdSteadyClock = typedef std::chrono::steady_clock |
Definition at line 25 of file GpuTypesPriv.h.
typedef intptr_t skgpu::VulkanBackendMemory |
Definition at line 32 of file VulkanTypes.h.
typedef void* skgpu::VulkanDeviceLostContext |
Definition at line 121 of file VulkanTypes.h.
typedef void(* skgpu::VulkanDeviceLostProc) (VulkanDeviceLostContext faultContext, const std::string &description, const std::vector< VkDeviceFaultAddressInfoEXT > &addressInfos, const std::vector< VkDeviceFaultVendorInfoEXT > &vendorInfos, const std::vector< std::byte > &vendorBinaryData) |
Definition at line 122 of file VulkanTypes.h.
using skgpu::VulkanGetProc = typedef std::function<PFN_vkVoidFunction( const char*, VkInstance, VkDevice )> |
Definition at line 26 of file VulkanTypes.h.
|
strong |
Possible 3D APIs that may be used by Graphite.
Enumerator | |
---|---|
kDawn | |
kMetal | |
kVulkan | |
kMock | |
kUnsupported | Graphite doesn't support some context types (e.g. Direct3D) and will return Unsupported. |
Definition at line 22 of file GpuTypes.h.
|
strong |
Coefficients for alpha-blending.
Enumerator | |
---|---|
kZero | |
kOne | |
kSC | |
kISC | |
kDC | |
kIDC | |
kSA | |
kISA | |
kDA | |
kIDA | |
kConstC | |
kIConstC | |
kS2C | |
kIS2C | |
kS2A | |
kIS2A | |
kIllegal | |
kLast |
|
strong |
Equations for alpha-blending.
Definition at line 26 of file Blend.h.
|
strong |
Indicates whether an allocation should count against a cache budget.
Enumerator | |
---|---|
kNo | |
kYes |
Definition at line 35 of file GpuTypes.h.
|
strong |
Value passed into various callbacks to tell the client the result of operations connected to a specific callback. The actual interpretation of kFailed and kSuccess are dependent on the specific callbacks and are documented with the callback itself.
Enumerator | |
---|---|
kFailed | |
kSuccess |
Definition at line 45 of file GpuTypes.h.
|
strong |
Enumerator | |
---|---|
kGL | |
kGLES | OpenGL context. |
kANGLE_D3D9_ES2 | OpenGL ES context. |
kANGLE_D3D11_ES2 | ANGLE on Direct3D9 OpenGL ES 2 context. |
kANGLE_D3D11_ES3 | ANGLE on Direct3D11 OpenGL ES 2 context. |
kANGLE_GL_ES2 | ANGLE on Direct3D11 OpenGL ES 3 context. |
kANGLE_GL_ES3 | ANGLE on OpenGL OpenGL ES 2 context. |
kANGLE_Metal_ES2 | ANGLE on OpenGL OpenGL ES 3 context. |
kANGLE_Metal_ES3 | ANGLE on Metal ES 2 context. |
kVulkan | ANGLE on Metal ES 3 context. |
kMetal | Vulkan. |
kDirect3D | Metal. |
kDawn_D3D11 | Direct3D 12. |
kDawn_D3D12 | Dawn on Direct3D11. |
kDawn_Metal | Dawn on Direct3D12. |
kDawn_Vulkan | Dawn on Metal. |
kDawn_OpenGL | Dawn on Vulkan. |
kDawn_OpenGLES | Dawn on OpenGL. |
kMock | Dawn on OpenGL ES. |
kLastContextType | Mock context that does not draw. |
Definition at line 19 of file ContextType.h.
|
strong |
Formats for masks, used by the font cache. Important that these are 0-based.
Enumerator | |
---|---|
kA8 | 1-byte per pixel |
kA565 | 2-bytes per pixel, RGB represent 3-channel LCD coverage |
kARGB | 4-bytes per pixel, color format |
kLast |
Definition at line 98 of file AtlasTypes.h.
|
strong |
|
strong |
What is the logical origin of a BackendTexture passed into Skia
Enumerator | |
---|---|
kTopLeft | |
kBottomLeft |
Definition at line 77 of file GpuTypes.h.
|
strong |
Is the data protected on the GPU or not.
Enumerator | |
---|---|
kNo | |
kYes |
Definition at line 61 of file GpuTypes.h.
|
strong |
|
strong |
Enumerator | |
---|---|
kNo | |
kYes |
Definition at line 25 of file VulkanAMDMemoryAllocator.h.
|
static |
Definition at line 120 of file BlurUtils.cpp.
|
staticconstexpr |
Advanced blend equations can always tweak alpha for coverage. (See GrCustomXfermode.cpp)
For "add" and "reverse subtract" the blend equation with f=coverage is:
D' = f * (S * srcCoeff + D * dstCoeff) + (1-f) * D = f * S * srcCoeff + D * (f * dstCoeff + (1 - f))
(Let srcCoeff be negative for reverse subtract.) We can tweak alpha for coverage when the following relationship holds:
(f*S) * srcCoeff' + D * dstCoeff' == f * S * srcCoeff + D * (f * dstCoeff + (1 - f))
(Where srcCoeff' and dstCoeff' have any reference to S pre-multiplied by f.)
It's easy to see this works for the src term as long as srcCoeff' == srcCoeff (meaning srcCoeff does not reference S). For the dst term, this will work as long as the following is true: | dstCoeff' == f * dstCoeff + (1 - f) dstCoeff' == 1 - f * (1 - dstCoeff)
By inspection we can see this will work as long as dstCoeff has a 1, and any other term in dstCoeff references S.
Moreover, if the blend doesn't modify the dst at all then it is ok to arbitrarily modify the src color so folding in coverage is allowed.
Definition at line 179 of file Blend.h.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
Definition at line 122 of file Blend.h.
|
staticconstexpr |
|
staticconstexpr |
const char * skgpu::BlendFuncName | ( | SkBlendMode | mode | ) |
Returns the name of the SkSL built-in blend function for a SkBlendMode.
Definition at line 18 of file Blend.cpp.
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
Definition at line 30 of file BlurUtils.h.
Definition at line 26 of file BlurUtils.h.
Definition at line 27 of file BlurUtils.h.
|
inline |
Definition at line 33 of file BlurUtils.h.
SkISize skgpu::CompressedDimensions | ( | SkTextureCompressionType | type, |
SkISize | baseDimensions | ||
) |
Definition at line 195 of file DataUtils.cpp.
SkISize skgpu::CompressedDimensionsInBlocks | ( | SkTextureCompressionType | type, |
SkISize | baseDimensions | ||
) |
Definition at line 210 of file DataUtils.cpp.
size_t skgpu::CompressedRowBytes | ( | SkTextureCompressionType | type, |
int | width | ||
) |
Definition at line 179 of file DataUtils.cpp.
|
staticconstexpr |
Definition at line 30 of file GpuTypesPriv.h.
|
staticconstexpr |
Definition at line 41 of file GpuTypesPriv.h.
Definition at line 56 of file BlurUtils.h.
|
inline |
Definition at line 64 of file BlurUtils.h.
Definition at line 46 of file BlurUtils.h.
|
inline |
Definition at line 50 of file BlurUtils.h.
|
inline |
Definition at line 60 of file BlurUtils.h.
int skgpu::ComputeIntegralTableWidth | ( | float | sixSigma | ) |
Definition at line 62 of file BlurUtils.cpp.
const char * skgpu::ContextTypeName | ( | skgpu::ContextType | type | ) |
Definition at line 13 of file ContextType.cpp.
Definition at line 147 of file DataUtils.cpp.
Definition at line 73 of file DataUtils.cpp.
Definition at line 188 of file BlurUtils.cpp.
Definition at line 226 of file BlurUtils.cpp.
Definition at line 38 of file BlurUtils.cpp.
SkBitmap skgpu::CreateRRectBlurMask | ( | const SkRRect & | rrectToDraw, |
const SkISize & | dimensions, | ||
float | sigma | ||
) |
Definition at line 316 of file BlurUtils.cpp.
ShaderErrorHandler * skgpu::DefaultShaderErrorHandler | ( | ) |
Used when no error handler is set. Will report failures via SkDebugf and asserts.
Definition at line 18 of file ShaderErrorHandler.cpp.
float skgpu::DitherRangeForConfig | ( | SkColorType | dstColorType | ) |
Definition at line 20 of file DitherUtils.cpp.
|
static |
Definition at line 154 of file BlurUtils.cpp.
|
static |
Definition at line 291 of file BlurUtils.cpp.
|
static |
Definition at line 270 of file BlurUtils.cpp.
Definition at line 36 of file DataUtils.cpp.
|
static |
Definition at line 243 of file DataUtils.cpp.
|
static |
Definition at line 228 of file DataUtils.cpp.
void skgpu::FillInCompressedData | ( | SkTextureCompressionType | type, |
SkISize | dimensions, | ||
skgpu::Mipmapped | mipmapped, | ||
char * | dstPixels, | ||
const SkColor4f & | colorf | ||
) |
Definition at line 257 of file DataUtils.cpp.
|
static |
Definition at line 21 of file VulkanExtensions.cpp.
|
inline |
Definition at line 25 of file GpuTools.h.
|
inline |
Definition at line 34 of file GpuTools.h.
Map dimensions to larger powers of 2. Above a certain tolerance, dimensions can also map to the midpoints between powers of 2.
Definition at line 17 of file SkBackingFit.cpp.
BlendFormula skgpu::GetBlendFormula | ( | bool | isOpaque, |
bool | hasCoverage, | ||
SkBlendMode | xfermode | ||
) |
Definition at line 216 of file BlendFormula.cpp.
|
inline |
Definition at line 38 of file BlurUtils.h.
T * skgpu::GetExtensionFeatureStruct | ( | const VkPhysicalDeviceFeatures2 & | features, |
VkStructureType | type | ||
) |
Returns a ptr to the requested extension feature struct or nullptr if it is not present.
Definition at line 216 of file VulkanUtilsPriv.h.
BlendFormula skgpu::GetLCDBlendFormula | ( | SkBlendMode | xfermode | ) |
Definition at line 221 of file BlendFormula.cpp.
|
inline |
Definition at line 42 of file BlurUtils.h.
SkSpan< const float > skgpu::GetPorterDuffBlendConstants | ( | SkBlendMode | mode | ) |
If a blend can be represented by blend_porter_duff
, returns the associated blend constants as an array of four floats. If not, returns an empty span.
Definition at line 53 of file Blend.cpp.
ReducedBlendModeInfo skgpu::GetReducedBlendModeInfo | ( | SkBlendMode | mode | ) |
Definition at line 86 of file Blend.cpp.
void skgpu::InvokeDeviceLostCallback | ( | const skgpu::VulkanInterface * | vulkanInterface, |
VkDevice | vkDevice, | ||
skgpu::VulkanDeviceLostContext | faultContext, | ||
skgpu::VulkanDeviceLostProc | faultProc, | ||
bool | supportsDeviceFaultInfoExtension | ||
) |
Calls faultProc with faultContext; passes debug info if VK_EXT_device_fault is supported/enabled.
Note: must only be called after receiving VK_ERROR_DEVICE_LOST.
Definition at line 210 of file VulkanUtilsPriv.cpp.
bool skgpu::IsDawnBackend | ( | skgpu::ContextType | type | ) |
Definition at line 73 of file ContextType.cpp.
bool skgpu::IsNativeBackend | ( | skgpu::ContextType | type | ) |
Definition at line 57 of file ContextType.cpp.
bool skgpu::IsRenderingContext | ( | skgpu::ContextType | type | ) |
Definition at line 88 of file ContextType.cpp.
|
static |
Definition at line 104 of file BlurUtils.cpp.
|
static |
Definition at line 87 of file BlurUtils.cpp.
SkBitmap skgpu::MakeDitherLUT | ( | ) |
Definition at line 74 of file DitherUtils.cpp.
|
inlineconstexpr |
Return the number of bytes-per-pixel for the specified mask format.
Definition at line 110 of file AtlasTypes.h.
|
staticconstexpr |
Definition at line 122 of file AtlasTypes.h.
size_t skgpu::MtlFormatBytesPerBlock | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 130 of file MtlUtils.mm.
uint32_t skgpu::MtlFormatChannels | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 102 of file MtlUtils.mm.
bool skgpu::MtlFormatIsCompressed | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 60 of file MtlUtils.mm.
bool skgpu::MtlFormatIsDepth | ( | MTLPixelFormat | format | ) |
Definition at line 33 of file MtlUtils.mm.
bool skgpu::MtlFormatIsDepthOrStencil | ( | MTLPixelFormat | format | ) |
Definition at line 18 of file MtlUtils.mm.
bool skgpu::MtlFormatIsStencil | ( | MTLPixelFormat | format | ) |
Definition at line 47 of file MtlUtils.mm.
SkTextureCompressionType skgpu::MtlFormatToCompressionType | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 159 of file MtlUtils.mm.
const char * skgpu::MtlFormatToString | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 73 of file MtlUtils.mm.
Definition at line 121 of file DataUtils.cpp.
Definition at line 125 of file DataUtils.cpp.
size_t skgpu::NumCompressedBlocks | ( | SkTextureCompressionType | type, |
SkISize | baseDimensions | ||
) |
Definition at line 163 of file DataUtils.cpp.
|
inline |
Definition at line 420 of file BufferWriter.h.
|
inline |
Definition at line 417 of file BufferWriter.h.
|
inline |
|
inline |
Definition at line 327 of file BufferWriter.h.
|
inline |
Definition at line 318 of file BufferWriter.h.
|
inline |
|
inline |
|
inline |
Definition at line 301 of file BufferWriter.h.
|
inline |
Definition at line 286 of file BufferWriter.h.
|
inline |
Definition at line 310 of file BufferWriter.h.
|
inline |
uint32_t skgpu::ResourceKeyHash | ( | const uint32_t * | data, |
size_t | size | ||
) |
Definition at line 38 of file ResourceKey.cpp.
|
staticconstexpr |
Definition at line 174 of file VulkanUtilsPriv.h.
void skgpu::SetupSamplerYcbcrConversionInfo | ( | VkSamplerYcbcrConversionCreateInfo * | outInfo, |
const VulkanYcbcrConversionInfo & | conversionInfo | ||
) |
Returns a populated VkSamplerYcbcrConversionCreateInfo object based on VulkanYcbcrConversionInfo
Definition at line 26 of file VulkanUtilsPriv.cpp.
|
inlinestatic |
Definition at line 330 of file ResourceKey.h.
|
inlinestatic |
Definition at line 360 of file ResourceKey.h.
|
inlinestatic |
Definition at line 385 of file ResourceKey.h.
bool skgpu::SkSLToBackend | ( | const SkSL::ShaderCaps * | caps, |
bool(*)(SkSL::Program &, const SkSL::ShaderCaps *, std::string *) | toBackend, | ||
const char * | backendLabel, | ||
const std::string & | sksl, | ||
SkSL::ProgramKind | programKind, | ||
const SkSL::ProgramSettings & | settings, | ||
std::string * | output, | ||
SkSL::ProgramInterface * | outInterface, | ||
ShaderErrorHandler * | errorHandler | ||
) |
Wrapper for the SkSL compiler with useful logging and error handling.
Definition at line 21 of file PipelineUtils.cpp.
|
inline |
Definition at line 38 of file GrGLShaderStringBuilder.h.
|
inline |
Definition at line 85 of file GrD3DPipelineStateBuilder.h.
|
inline |
Definition at line 30 of file MtlUtilsPriv.h.
|
inline |
Definition at line 41 of file VulkanUtilsPriv.h.
|
inline |
Definition at line 29 of file DawnUtilsPriv.h.
|
static |
Definition at line 59 of file DataUtils.cpp.
|
static |
Definition at line 138 of file DataUtils.cpp.
|
staticconstexpr |
Definition at line 84 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 52 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Returns true if the format is compressed.
Definition at line 201 of file VulkanUtilsPriv.h.
Definition at line 143 of file VulkanUtilsPriv.h.
Definition at line 132 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 168 of file VulkanUtilsPriv.h.
Definition at line 155 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 123 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 243 of file VulkanUtilsPriv.h.
|
static |
|
static |
|
static |
Definition at line 42 of file ContextType.h.
|
constexpr |
Definition at line 34 of file DataUtils.cpp.
|
static |
Definition at line 46 of file DataUtils.cpp.
|
constexpr |
Definition at line 267 of file VulkanInterface.cpp.
|
static |
Definition at line 105 of file AtlasTypes.h.
|
staticconstexpr |
Definition at line 35 of file BlurUtils.h.
|
staticconstexpr |
Definition at line 36 of file BlurUtils.h.
|
static |
Definition at line 41 of file DataUtils.cpp.
|
static |
Definition at line 42 of file DataUtils.cpp.