| 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 & | SetSupportsBufferToTextureBlits (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)
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 210 of file capabilities.cc.

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

References impeller::kUnknown.

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

## ◆ SetDefaultColorFormat()

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

Definition at line 174 of file capabilities.cc.

175 {
176 default_color_format_ = value;
177 return *this;
178 }

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

## ◆ SetDefaultDepthStencilFormat()

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

Definition at line 186 of file capabilities.cc.

187 {
188 default_depth_stencil_format_ = value;
189 return *this;
190 }

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

## ◆ SetDefaultStencilFormat()

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

Definition at line 180 of file capabilities.cc.

181 {
182 default_stencil_format_ = value;
183 return *this;
184 }

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

## ◆ SetSupportsBufferToTextureBlits()

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

Definition at line 145 of file capabilities.cc.

146 {
147 supports_buffer_to_texture_blits_ = value;
148 return *this;
149 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsCompute()

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

Definition at line 163 of file capabilities.cc.

163 {
164 supports_compute_ = value;
165 return *this;
166 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsComputeSubgroups()

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

Definition at line 168 of file capabilities.cc.

169 {
170 supports_compute_subgroups_ = value;
171 return *this;
172 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsDecalSamplerAddressMode()

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

Definition at line 198 of file capabilities.cc.

199 {
200 supports_decal_sampler_address_mode_ = value;
201 return *this;
202 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsDeviceTransientTextures()

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

Definition at line 204 of file capabilities.cc.

205 {
206 supports_device_transient_textures_ = value;
207 return *this;
208 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsFramebufferFetch()

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

Definition at line 157 of file capabilities.cc.

158 {
159 supports_framebuffer_fetch_ = value;
160 return *this;
161 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsOffscreenMSAA()

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

Definition at line 135 of file capabilities.cc.

135 {
136 supports_offscreen_msaa_ = value;
137 return *this;
138 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsReadFromResolve()

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

Definition at line 192 of file capabilities.cc.

193 {
194 supports_read_from_resolve_ = read_from_resolve;
195 return *this;
196 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsSSBO()

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

Definition at line 140 of file capabilities.cc.

140 {
141 supports_ssbo_ = value;
142 return *this;
143 }

Referenced by impeller::InferMetalCapabilities().

## ◆ SetSupportsTextureToTextureBlits()

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

Definition at line 151 of file capabilities.cc.

152 {
153 supports_texture_to_texture_blits_ = value;
154 return *this;
155 }

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