|
virtual | ~Caps () |
|
const SkSL::ShaderCaps * | shaderCaps () const |
|
sk_sp< SkCapabilities > | capabilities () const |
|
virtual TextureInfo | getDefaultSampledTextureInfo (SkColorType, Mipmapped mipmapped, Protected, Renderable) const =0 |
|
virtual TextureInfo | getTextureInfoForSampledCopy (const TextureInfo &textureInfo, Mipmapped mipmapped) const =0 |
|
virtual TextureInfo | getDefaultCompressedTextureInfo (SkTextureCompressionType, Mipmapped mipmapped, Protected) const =0 |
|
virtual TextureInfo | getDefaultMSAATextureInfo (const TextureInfo &singleSampledInfo, Discardable discardable) const =0 |
|
virtual TextureInfo | getDefaultDepthStencilTextureInfo (SkEnumBitMask< DepthStencilFlags >, uint32_t sampleCount, Protected) const =0 |
|
virtual TextureInfo | getDefaultStorageTextureInfo (SkColorType) const =0 |
|
virtual SkISize | getDepthAttachmentDimensions (const TextureInfo &, const SkISize colorAttachmentDimensions) const |
|
virtual UniqueKey | makeGraphicsPipelineKey (const GraphicsPipelineDesc &, const RenderPassDesc &) const =0 |
|
virtual UniqueKey | makeComputePipelineKey (const ComputePipelineDesc &) const =0 |
|
virtual GraphiteResourceKey | makeSamplerKey (const SamplerDesc &samplerDesc) const |
|
virtual ImmutableSamplerInfo | getImmutableSamplerInfo (const TextureProxy *) const |
|
virtual bool | extractGraphicsDescs (const UniqueKey &, GraphicsPipelineDesc *, RenderPassDesc *, const RendererProvider *) const |
|
bool | areColorTypeAndTextureInfoCompatible (SkColorType, const TextureInfo &) const |
|
virtual uint32_t | channelMask (const TextureInfo &) const =0 |
|
bool | isTexturable (const TextureInfo &) const |
|
virtual bool | isRenderable (const TextureInfo &) const =0 |
|
virtual bool | isStorage (const TextureInfo &) const =0 |
|
int | maxTextureSize () const |
|
int | defaultMSAASamplesCount () const |
|
virtual void | buildKeyForTexture (SkISize dimensions, const TextureInfo &, ResourceType, Shareable, GraphiteResourceKey *) const =0 |
|
const ResourceBindingRequirements & | resourceBindingRequirements () const |
|
size_t | requiredUniformBufferAlignment () const |
|
size_t | requiredStorageBufferAlignment () const |
|
size_t | requiredTransferBufferAlignment () const |
|
size_t | getAlignedTextureDataRowBytes (size_t rowBytes) const |
|
virtual bool | supportsWritePixels (const TextureInfo &textureInfo) const =0 |
|
virtual bool | supportsReadPixels (const TextureInfo &textureInfo) const =0 |
|
virtual std::pair< SkColorType, bool > | supportedWritePixelsColorType (SkColorType dstColorType, const TextureInfo &dstTextureInfo, SkColorType srcColorType) const =0 |
|
virtual std::pair< SkColorType, bool > | supportedReadPixelsColorType (SkColorType srcColorType, const TextureInfo &srcTextureInfo, SkColorType dstColorType) const =0 |
|
SkColorType | getRenderableColorType (SkColorType) const |
|
bool | clampToBorderSupport () const |
|
bool | protectedSupport () const |
|
bool | semaphoreSupport () const |
|
bool | allowCpuSync () const |
|
bool | storageBufferSupport () const |
|
bool | storageBufferPreferred () const |
|
bool | drawBufferCanBeMapped () const |
|
bool | bufferMapsAreAsync () const |
|
bool | msaaRenderToSingleSampledSupport () const |
|
bool | computeSupport () const |
|
bool | supportsAHardwareBufferImages () const |
|
skgpu::Swizzle | getReadSwizzle (SkColorType, const TextureInfo &) const |
|
skgpu::Swizzle | getWriteSwizzle (SkColorType, const TextureInfo &) const |
|
skgpu::ShaderErrorHandler * | shaderErrorHandler () const |
|
DstReadRequirement | getDstReadRequirement () const |
|
float | minDistanceFieldFontSize () const |
|
float | glyphsAsPathsFontSize () const |
|
size_t | glyphCacheTextureMaximumBytes () const |
|
int | maxPathAtlasTextureSize () const |
|
bool | allowMultipleAtlasTextures () const |
|
bool | supportBilerpFromGlyphAtlas () const |
|
bool | requireOrderedRecordings () const |
|
bool | fullCompressedUploadSizeMustAlignToBlockDims () const |
|
sktext::gpu::SDFTControl | getSDFTControl (bool useSDFTForSmallText) const |
|
bool | setBackendLabels () const |
|
Definition at line 71 of file Caps.h.
Given a src surface's color type and its texture info as well as a color type the caller would like read into, this provides a legal color type that the caller can use for readPixels. The returned color type may differ from the passed dstColorType, in which case the caller must convert the read pixel data (see GrConvertPixels). When converting to dstColorType the swizzle in the returned struct should be applied. The caller must check the returned color type for kUnknown.
We currently don't have an SkColorType for a 3 channel RGB format. Additionally the current implementation of raster pipeline requires power of 2 channels, so it is not easy to add such an SkColorType. Thus we need to check for data that is 3 channels using the isRGBFormat return value and handle it manually