5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CAPABILITIES_GLES_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CAPABILITIES_GLES_H_
25 public BackendCast<CapabilitiesGLES, Capabilities> {
166 bool supports_texture_to_texture_blits_ =
false;
167 bool supports_framebuffer_fetch_ =
false;
168 bool supports_decal_sampler_address_mode_ =
false;
169 bool supports_offscreen_msaa_ =
false;
170 bool supports_implicit_msaa_ =
false;
171 bool supports_32bit_primitive_indices_ =
false;
172 bool supports_texture_max_level_ =
false;
173 bool is_angle_ =
false;
175 bool supports_texture_compression_bc_ =
false;
176 bool supports_texture_compression_etc2_ =
false;
177 bool supports_texture_compression_astc_ =
false;
178 bool supports_texture_compression_astc_hdr_ =
false;
The Vulkan layers and extensions wrangler.
bool IsES() const
Whether this is an ES GL variant or (if false) desktop GL.
bool SupportsImplicitResolvingMSAA() const override
Whether the context backend supports multisampled rendering to the on-screen surface without requirin...
PixelFormat GetDefaultDepthStencilFormat() const override
Returns a supported PixelFormat for textures that store both a stencil and depth component....
CapabilitiesGLES & operator=(CapabilitiesGLES &&)=delete
size_t max_vertex_uniform_vectors
PixelFormat GetDefaultColorFormat() const override
Returns a supported PixelFormat for textures that store 4-channel colors (red/green/blue/alpha).
bool SupportsSSBO() const override
Whether the context backend supports binding Shader Storage Buffer Objects (SSBOs) to pipelines.
size_t max_fragment_uniform_vectors
bool SupportsTextureToTextureBlits() const override
Whether the context backend supports blitting from one texture region to another texture region (via ...
ISize GetMaximumRenderPassAttachmentSize() const override
Return the maximum size of a render pass attachment.
bool SupportsFramebufferRenderMipmap() const override
CapabilitiesGLES(const CapabilitiesGLES &)=delete
size_t max_renderbuffer_size
bool SupportsPrimitiveRestart() const override
Whether primitive restart is supported.
size_t GetMaxTextureUnits(ShaderStage stage) const
bool NeedsPartitionedHostBuffer() const override
Whether the host buffer should use separate device buffers for indexes from other data.
size_t max_cube_map_texture_size
size_t max_vertex_texture_image_units
bool SupportsTriangleFan() const override
Whether the primitive type TriangleFan is supported by the backend.
size_t num_shader_binary_formats
bool Supports32BitPrimitiveIndices() const override
Whether 32-bit values are supported in index buffers used to draw primitives.
size_t max_combined_texture_image_units
CapabilitiesGLES(CapabilitiesGLES &&)=delete
bool SupportsTextureCompression(CompressedTextureFamily family) const override
Whether the given family of block-compressed texture formats is supported by this device....
bool SupportsTextureMaxLevel() const
Whether GL_TEXTURE_MAX_LEVEL can be set to bound a texture's sampled mip range. Core on desktop GL an...
bool SupportsOffscreenMSAA() const override
Whether the context backend supports attaching offscreen MSAA color/stencil textures.
size_t GetMinimumUniformAlignment() const override
The minimum alignment of uniform value offsets in bytes.
PixelFormat GetDefaultStencilFormat() const override
Returns a supported PixelFormat for textures that store stencil information. May include a depth chan...
bool SupportsReadFromResolve() const override
Whether the context backend supports binding the current RenderPass attachments. This is supported if...
bool SupportsDeviceTransientTextures() const override
Whether the context backend supports allocating StorageMode::kDeviceTransient (aka "memoryless") text...
bool SupportsDecalSamplerAddressMode() const override
Whether the context backend supports SamplerAddressMode::Decal.
size_t max_texture_image_units
PixelFormat GetDefaultGlyphAtlasFormat() const override
Returns the default pixel format for the alpha bitmap glyph atlas.
size_t max_vertex_attribs
bool SupportsExtendedRangeFormats() const override
Whether the XR formats are supported on this device.
bool SupportsCompute() const override
Whether the context backend supports ComputePass.
bool SupportsManuallyMippedTextures() const override
Whether a texture whose mip levels were uploaded by hand (rather than produced by BlitPass::GenerateM...
size_t max_varying_vectors
bool SupportsComputeSubgroups() const override
Whether the context backend supports configuring ComputePass command subgroups.
size_t num_compressed_texture_formats
CapabilitiesGLES & operator=(const CapabilitiesGLES &)=delete
bool SupportsFramebufferFetch() const override
Whether the context backend is able to support pipelines with shaders that read from the framebuffer ...
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...
CompressedTextureFamily
The family of a block-compressed pixel format. GPUs support compressed formats on a per-family basis,...