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) |
void | Compute2DBlurKernel (SkSize sigma, SkISize radius, SkSpan< float > kernel) |
void | Compute2DBlurKernel (SkSize sigma, SkISize radii, std::array< SkV4, kMaxBlurSamples/4 > &kernel) |
void | Compute2DBlurOffsets (SkISize radius, std::array< SkV4, kMaxBlurSamples/2 > &offsets) |
void | Compute1DBlurLinearKernel (float sigma, int radius, std::array< SkV4, kMaxBlurSamples/2 > &offsetsAndKernel) |
static SkKnownRuntimeEffects::StableKey | to_stablekey (int kernelWidth, uint32_t baseKey) |
const SkRuntimeEffect * | GetLinearBlur1DEffect (int radius) |
const SkRuntimeEffect * | GetBlur2DEffect (const SkISize &radii) |
SkBitmap | CreateIntegralTable (float sixSigma) |
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) |
void | Compute1DBlurKernel (float sigma, int radius, SkSpan< float > kernel) |
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 | 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 = 28 |
static constexpr float | kMaxLinearBlurSigma = 4.f |
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 14 of file VulkanMemory.cpp.
typedef SkTInternalLList<Plot> skgpu::PlotList |
Definition at line 535 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 31 of file VulkanTypes.h.
typedef void* skgpu::VulkanDeviceLostContext |
Definition at line 171 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 172 of file VulkanTypes.h.
using skgpu::VulkanGetProc = typedef std::function<PFN_vkVoidFunction( const char*, VkInstance, VkDevice )> |
Definition at line 25 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 |
|
static |
Definition at line 339 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.
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
Definition at line 37 of file BlurUtils.h.
Definition at line 28 of file BlurUtils.h.
Definition at line 32 of file BlurUtils.h.
|
inline |
Definition at line 41 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 118 of file BlurUtils.h.
void skgpu::Compute1DBlurLinearKernel | ( | float | sigma, |
int | radius, | ||
std::array< SkV4, kMaxBlurSamples/2 > & | offsetsAndKernel | ||
) |
Definition at line 115 of file BlurUtils.cpp.
void skgpu::Compute2DBlurKernel | ( | SkSize | sigma, |
SkISize | radii, | ||
std::array< SkV4, kMaxBlurSamples/4 > & | kernel | ||
) |
Definition at line 84 of file BlurUtils.cpp.
Definition at line 35 of file BlurUtils.cpp.
void skgpu::Compute2DBlurOffsets | ( | SkISize | radius, |
std::array< SkV4, kMaxBlurSamples/2 > & | offsets | ||
) |
Definition at line 93 of file BlurUtils.cpp.
int skgpu::ComputeIntegralTableWidth | ( | float | sixSigma | ) |
Definition at line 281 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 407 of file BlurUtils.cpp.
Definition at line 445 of file BlurUtils.cpp.
SkBitmap skgpu::CreateIntegralTable | ( | float | sixSigma | ) |
Definition at line 256 of file BlurUtils.cpp.
SkBitmap skgpu::CreateRRectBlurMask | ( | const SkRRect & | rrectToDraw, |
const SkISize & | dimensions, | ||
float | sigma | ||
) |
Definition at line 535 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 373 of file BlurUtils.cpp.
|
static |
Definition at line 510 of file BlurUtils.cpp.
|
static |
Definition at line 489 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 18 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.
const SkRuntimeEffect * skgpu::GetBlur2DEffect | ( | const SkISize & | radii | ) |
Definition at line 243 of file BlurUtils.cpp.
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 208 of file VulkanUtilsPriv.h.
BlendFormula skgpu::GetLCDBlendFormula | ( | SkBlendMode | xfermode | ) |
Definition at line 221 of file BlendFormula.cpp.
const SkRuntimeEffect * skgpu::GetLinearBlur1DEffect | ( | int | radius | ) |
Definition at line 237 of file BlurUtils.cpp.
SkSpan< const float > skgpu::GetPorterDuffBlendConstants | ( | SkBlendMode | mode | ) |
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 194 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 323 of file BlurUtils.cpp.
|
static |
Definition at line 306 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 119 of file MtlUtils.mm.
uint32_t skgpu::MtlFormatChannels | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 91 of file MtlUtils.mm.
bool skgpu::MtlFormatIsCompressed | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 49 of file MtlUtils.mm.
bool skgpu::MtlFormatIsDepth | ( | MTLPixelFormat | format | ) |
Definition at line 29 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 39 of file MtlUtils.mm.
SkTextureCompressionType skgpu::MtlFormatToCompressionType | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 148 of file MtlUtils.mm.
const char * skgpu::MtlFormatToString | ( | MTLPixelFormat | mtlFormat | ) |
Definition at line 62 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 166 of file VulkanUtilsPriv.h.
void skgpu::SetupSamplerYcbcrConversionInfo | ( | VkSamplerYcbcrConversionCreateInfo * | outInfo, |
const VulkanYcbcrConversionInfo & | conversionInfo | ||
) |
Returns a populated VkSamplerYcbcrConversionCreateInfo object based on VulkanYcbcrConversionInfo
Definition at line 23 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 30 of file MtlUtilsPriv.h.
|
inline |
Definition at line 39 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.
|
static |
Definition at line 200 of file BlurUtils.cpp.
|
staticconstexpr |
Definition at line 80 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 50 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Returns true if the format is compressed.
Definition at line 193 of file VulkanUtilsPriv.h.
Definition at line 137 of file VulkanUtilsPriv.h.
Definition at line 126 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 160 of file VulkanUtilsPriv.h.
Definition at line 147 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 117 of file VulkanUtilsPriv.h.
|
staticconstexpr |
Definition at line 235 of file VulkanUtilsPriv.h.
|
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 261 of file VulkanInterface.cpp.
Definition at line 105 of file AtlasTypes.h.
|
staticconstexpr |
Definition at line 52 of file BlurUtils.h.
|
staticconstexpr |
Definition at line 58 of file BlurUtils.h.
|
static |
Definition at line 41 of file DataUtils.cpp.
|
static |
Definition at line 42 of file DataUtils.cpp.