Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
impeller::CapabilitiesBuilder Class Reference

#include <capabilities.h>

Public Member Functions

 CapabilitiesBuilder ()
 
 ~CapabilitiesBuilder ()
 
CapabilitiesBuilderSetSupportsOffscreenMSAA (bool value)
 
CapabilitiesBuilderSetSupportsSSBO (bool value)
 
CapabilitiesBuilderSetSupportsTextureToTextureBlits (bool value)
 
CapabilitiesBuilderSetSupportsFramebufferFetch (bool value)
 
CapabilitiesBuilderSetSupportsCompute (bool value)
 
CapabilitiesBuilderSetSupportsComputeSubgroups (bool value)
 
CapabilitiesBuilderSetSupportsReadFromResolve (bool value)
 
CapabilitiesBuilderSetDefaultColorFormat (PixelFormat value)
 
CapabilitiesBuilderSetDefaultStencilFormat (PixelFormat value)
 
CapabilitiesBuilderSetDefaultDepthStencilFormat (PixelFormat value)
 
CapabilitiesBuilderSetSupportsDecalSamplerAddressMode (bool value)
 
CapabilitiesBuilderSetSupportsDeviceTransientTextures (bool value)
 
CapabilitiesBuilderSetDefaultGlyphAtlasFormat (PixelFormat value)
 
std::unique_ptr< CapabilitiesBuild ()
 

Detailed Description

Definition at line 116 of file capabilities.h.

Constructor & Destructor Documentation

◆ CapabilitiesBuilder()

impeller::CapabilitiesBuilder::CapabilitiesBuilder ( )
default

◆ ~CapabilitiesBuilder()

impeller::CapabilitiesBuilder::~CapabilitiesBuilder ( )
default

Member Function Documentation

◆ Build()

std::unique_ptr< Capabilities > impeller::CapabilitiesBuilder::Build ( )

Definition at line 212 of file capabilities.cc.

212 {
213 return std::unique_ptr<StandardCapabilities>(new StandardCapabilities( //
214 supports_offscreen_msaa_, //
215 supports_ssbo_, //
216 supports_texture_to_texture_blits_, //
217 supports_framebuffer_fetch_, //
218 supports_compute_, //
219 supports_compute_subgroups_, //
220 supports_read_from_resolve_, //
221 supports_decal_sampler_address_mode_, //
222 supports_device_transient_textures_, //
223 default_color_format_.value_or(PixelFormat::kUnknown), //
224 default_stencil_format_.value_or(PixelFormat::kUnknown), //
225 default_depth_stencil_format_.value_or(PixelFormat::kUnknown), //
226 default_glyph_atlas_format_.value_or(PixelFormat::kUnknown) //
227 ));
228}

◆ SetDefaultColorFormat()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetDefaultColorFormat ( PixelFormat  value)

Definition at line 170 of file capabilities.cc.

171 {
172 default_color_format_ = value;
173 return *this;
174}
uint8_t value

◆ SetDefaultDepthStencilFormat()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetDefaultDepthStencilFormat ( PixelFormat  value)

Definition at line 182 of file capabilities.cc.

183 {
184 default_depth_stencil_format_ = value;
185 return *this;
186}

◆ SetDefaultGlyphAtlasFormat()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetDefaultGlyphAtlasFormat ( PixelFormat  value)

Definition at line 206 of file capabilities.cc.

207 {
208 default_glyph_atlas_format_ = value;
209 return *this;
210}

◆ SetDefaultStencilFormat()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetDefaultStencilFormat ( PixelFormat  value)

Definition at line 176 of file capabilities.cc.

177 {
178 default_stencil_format_ = value;
179 return *this;
180}

◆ SetSupportsCompute()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsCompute ( bool  value)

Definition at line 159 of file capabilities.cc.

159 {
160 supports_compute_ = value;
161 return *this;
162}

◆ SetSupportsComputeSubgroups()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsComputeSubgroups ( bool  value)

Definition at line 164 of file capabilities.cc.

165 {
166 supports_compute_subgroups_ = value;
167 return *this;
168}

◆ SetSupportsDecalSamplerAddressMode()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsDecalSamplerAddressMode ( bool  value)

Definition at line 194 of file capabilities.cc.

195 {
196 supports_decal_sampler_address_mode_ = value;
197 return *this;
198}

◆ SetSupportsDeviceTransientTextures()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsDeviceTransientTextures ( bool  value)

Definition at line 200 of file capabilities.cc.

201 {
202 supports_device_transient_textures_ = value;
203 return *this;
204}

◆ SetSupportsFramebufferFetch()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsFramebufferFetch ( bool  value)

Definition at line 153 of file capabilities.cc.

154 {
155 supports_framebuffer_fetch_ = value;
156 return *this;
157}

◆ SetSupportsOffscreenMSAA()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsOffscreenMSAA ( bool  value)

Definition at line 137 of file capabilities.cc.

137 {
138 supports_offscreen_msaa_ = value;
139 return *this;
140}

◆ SetSupportsReadFromResolve()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsReadFromResolve ( bool  value)

Definition at line 188 of file capabilities.cc.

189 {
190 supports_read_from_resolve_ = read_from_resolve;
191 return *this;
192}

◆ SetSupportsSSBO()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsSSBO ( bool  value)

Definition at line 142 of file capabilities.cc.

142 {
143 supports_ssbo_ = value;
144 return *this;
145}

◆ SetSupportsTextureToTextureBlits()

CapabilitiesBuilder & impeller::CapabilitiesBuilder::SetSupportsTextureToTextureBlits ( bool  value)

Definition at line 147 of file capabilities.cc.

148 {
149 supports_texture_to_texture_blits_ = value;
150 return *this;
151}

The documentation for this class was generated from the following files: