| Flutter Impeller |

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

`#include <capabilities.h>`

## Public Member Functions
| CapabilitiesBuilder ()
| ~CapabilitiesBuilder ()
CapabilitiesBuilder & | SetSupportsOffscreenMSAA (bool value)
CapabilitiesBuilder & | SetSupportsSSBO (bool value)
CapabilitiesBuilder & | SetSupportsTextureToTextureBlits (bool value)
CapabilitiesBuilder & | SetSupportsFramebufferFetch (bool value)
CapabilitiesBuilder & | SetSupportsCompute (bool value)
CapabilitiesBuilder & | SetSupportsComputeSubgroups (bool value)
CapabilitiesBuilder & | SetSupportsReadFromResolve (bool value)
CapabilitiesBuilder & | SetDefaultColorFormat (PixelFormat value)
CapabilitiesBuilder & | SetDefaultStencilFormat (PixelFormat value)
CapabilitiesBuilder & | SetDefaultDepthStencilFormat (PixelFormat value)
CapabilitiesBuilder & | SetSupportsDecalSamplerAddressMode (bool value)
CapabilitiesBuilder & | SetSupportsDeviceTransientTextures (bool value)
CapabilitiesBuilder & | SetDefaultGlyphAtlasFormat (PixelFormat value)
std::unique_ptr< Capabilities > | Build ()

## 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 }

References impeller::kUnknown.

Referenced by impeller::InferMetalCapabilities(), and impeller::testing::TEST().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities(), and impeller::testing::TEST().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities(), and impeller::testing::TEST().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities(), and impeller::testing::TEST().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities(), and impeller::testing::TEST().

## ◆ SetSupportsCompute()

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

Definition at line 159 of file capabilities.cc.

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

Referenced by impeller::InferMetalCapabilities().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsSSBO()

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

Definition at line 142 of file capabilities.cc.

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

Referenced by impeller::InferMetalCapabilities().

## ◆ 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 }

Referenced by impeller::InferMetalCapabilities().

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

- impeller/renderer/capabilities.h
- impeller/renderer/capabilities.cc

impeller::PixelFormat::kUnknown
@ kUnknown