Public Member Functions | |
| ~StandardCapabilities () override=default | |
| bool | SupportsOffscreenMSAA () const override |
| Whether the context backend supports attaching offscreen MSAA color/stencil textures. | |
| bool | SupportsImplicitResolvingMSAA () const override |
| Whether the context backend supports multisampled rendering to the on-screen surface without requiring an explicit resolve of the MSAA color attachment. | |
| bool | SupportsSSBO () const override |
| Whether the context backend supports binding Shader Storage Buffer Objects (SSBOs) to pipelines. | |
| bool | SupportsTextureToTextureBlits () const override |
Whether the context backend supports blitting from one texture region to another texture region (via the relevant BlitPass::AddCopy overloads). | |
| bool | SupportsFramebufferFetch () const override |
| Whether the context backend is able to support pipelines with shaders that read from the framebuffer (i.e. pixels that have been written by previous draw calls in the current render pass). | |
| bool | SupportsCompute () const override |
Whether the context backend supports ComputePass. | |
| bool | SupportsComputeSubgroups () const override |
Whether the context backend supports configuring ComputePass command subgroups. | |
| bool | SupportsReadFromResolve () const override |
Whether the context backend supports binding the current RenderPass attachments. This is supported if the backend can guarantee that attachment textures will not be mutated until the render pass has fully completed. | |
| bool | SupportsDecalSamplerAddressMode () const override |
Whether the context backend supports SamplerAddressMode::Decal. | |
| bool | SupportsTriangleFan () const override |
| Whether the primitive type TriangleFan is supported by the backend. | |
| PixelFormat | GetDefaultColorFormat () const override |
Returns a supported PixelFormat for textures that store 4-channel colors (red/green/blue/alpha). | |
| PixelFormat | GetDefaultStencilFormat () const override |
Returns a supported PixelFormat for textures that store stencil information. May include a depth channel if a stencil-only format is not available. | |
| PixelFormat | GetDefaultDepthStencilFormat () const override |
Returns a supported PixelFormat for textures that store both a stencil and depth component. This will never return a depth-only or stencil-only texture. Returns PixelFormat::kUnknown if no suitable depth+stencil format was found. | |
| bool | SupportsDeviceTransientTextures () const override |
Whether the context backend supports allocating StorageMode::kDeviceTransient (aka "memoryless") textures, which are temporary textures kept in tile memory for the duration of the RenderPass it's attached to. | |
| PixelFormat | GetDefaultGlyphAtlasFormat () const override |
| Returns the default pixel format for the alpha bitmap glyph atlas. | |
| ISize | GetMaximumRenderPassAttachmentSize () const override |
| Return the maximum size of a render pass attachment. | |
| bool | SupportsPrimitiveRestart () const override |
| Whether primitive restart is supported. | |
| bool | SupportsExtendedRangeFormats () const override |
| Whether the XR formats are supported on this device. | |
| size_t | GetMinimumUniformAlignment () const override |
| The minimum alignment of uniform value offsets in bytes. | |
| bool | NeedsPartitionedHostBuffer () const override |
| Whether the host buffer should use separate device buffers for indexes from other data. | |
Public Member Functions inherited from impeller::Capabilities | |
| virtual | ~Capabilities () |
| virtual size_t | GetMinimumStorageBufferAlignment () const |
| The minimum alignment of storage buffer value offsets in bytes. | |
Friends | |
| class | CapabilitiesBuilder |
Additional Inherited Members | |
Protected Member Functions inherited from impeller::Capabilities | |
| Capabilities () | |
| Capabilities (const Capabilities &)=delete | |
| Capabilities & | operator= (const Capabilities &)=delete |
Definition at line 18 of file capabilities.cc.
|
overridedefault |
|
inlineoverridevirtual |
Returns a supported PixelFormat for textures that store 4-channel colors (red/green/blue/alpha).
Implements impeller::Capabilities.
Definition at line 66 of file capabilities.cc.
|
inlineoverridevirtual |
Returns a supported PixelFormat for textures that store both a stencil and depth component. This will never return a depth-only or stencil-only texture. Returns PixelFormat::kUnknown if no suitable depth+stencil format was found.
Implements impeller::Capabilities.
Definition at line 76 of file capabilities.cc.
|
inlineoverridevirtual |
Returns the default pixel format for the alpha bitmap glyph atlas.
Some backends may use Red channel while others use grey. This should not have any impact
Implements impeller::Capabilities.
Definition at line 86 of file capabilities.cc.
|
inlineoverridevirtual |
Returns a supported PixelFormat for textures that store stencil information. May include a depth channel if a stencil-only format is not available.
Implements impeller::Capabilities.
Definition at line 71 of file capabilities.cc.
|
inlineoverridevirtual |
Return the maximum size of a render pass attachment.
Note that this may be smaller than the maximum allocatable texture size.
Implements impeller::Capabilities.
Definition at line 91 of file capabilities.cc.
|
inlineoverridevirtual |
The minimum alignment of uniform value offsets in bytes.
Implements impeller::Capabilities.
Definition at line 104 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the host buffer should use separate device buffers for indexes from other data.
Implements impeller::Capabilities.
Definition at line 109 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports ComputePass.
Implements impeller::Capabilities.
Definition at line 45 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports configuring ComputePass command subgroups.
Implements impeller::Capabilities.
Definition at line 48 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports SamplerAddressMode::Decal.
Implements impeller::Capabilities.
Definition at line 58 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports allocating StorageMode::kDeviceTransient (aka "memoryless") textures, which are temporary textures kept in tile memory for the duration of the RenderPass it's attached to.
This feature is especially useful for MSAA and stencils.
Implements impeller::Capabilities.
Definition at line 81 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the XR formats are supported on this device.
This is only ever true for iOS and macOS devices. We may need to revisit this API when approaching wide gamut rendering for Vulkan and GLES.
Implements impeller::Capabilities.
Definition at line 99 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend is able to support pipelines with shaders that read from the framebuffer (i.e. pixels that have been written by previous draw calls in the current render pass).
Example of reading from the first color attachment in a GLSL shader: ``` uniform subpassInput subpass_input;
out vec4 frag_color;
void main() { vec4 color = subpassLoad(subpass_input); // Invert the colors drawn to the framebuffer. frag_color = vec4(vec3(1) - color.rgb, color.a); } ```
Implements impeller::Capabilities.
Definition at line 40 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports multisampled rendering to the on-screen surface without requiring an explicit resolve of the MSAA color attachment.
Implements impeller::Capabilities.
Definition at line 29 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports attaching offscreen MSAA color/stencil textures.
Implements impeller::Capabilities.
Definition at line 24 of file capabilities.cc.
|
inlineoverridevirtual |
Whether primitive restart is supported.
Implements impeller::Capabilities.
Definition at line 96 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports binding the current RenderPass attachments. This is supported if the backend can guarantee that attachment textures will not be mutated until the render pass has fully completed.
This is possible because many mobile graphics cards track RenderPass attachment state in intermediary tile memory prior to Storing the pass in the heap allocated attachments on DRAM. Metal's hazard tracking and Vulkan's barriers are granular enough to allow for safely accessing attachment textures prior to storage in the same RenderPass.
Implements impeller::Capabilities.
Definition at line 53 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports binding Shader Storage Buffer Objects (SSBOs) to pipelines.
Implements impeller::Capabilities.
Definition at line 32 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the context backend supports blitting from one texture region to another texture region (via the relevant BlitPass::AddCopy overloads).
Implements impeller::Capabilities.
Definition at line 35 of file capabilities.cc.
|
inlineoverridevirtual |
Whether the primitive type TriangleFan is supported by the backend.
Implements impeller::Capabilities.
Definition at line 63 of file capabilities.cc.
|
friend |
Definition at line 153 of file capabilities.cc.