Flutter Engine
The Flutter Engine
|
#include <content_context.h>
Classes | |
struct | Equal |
struct | Hash |
Public Types | |
enum class | StencilMode : uint8_t { kIgnore , kStencilNonZeroFill , kStencilEvenOddFill , kCoverCompare , kCoverCompareInverted , kOverdrawPreventionIncrement , kOverdrawPreventionRestore } |
Public Member Functions | |
void | ApplyToPipelineDescriptor (PipelineDescriptor &desc) const |
Public Attributes | |
SampleCount | sample_count = SampleCount::kCount1 |
BlendMode | blend_mode = BlendMode::kSourceOver |
CompareFunction | depth_compare = CompareFunction::kAlways |
StencilMode | stencil_mode = ContentContextOptions::StencilMode::kIgnore |
PrimitiveType | primitive_type = PrimitiveType::kTriangle |
PixelFormat | color_attachment_pixel_format = PixelFormat::kUnknown |
bool | has_depth_stencil_attachments = true |
bool | depth_write_enabled = false |
bool | wireframe = false |
bool | is_for_rrect_blur_clear = false |
Pipeline state configuration.
Each unique combination of these options requires a different pipeline state object to be built. This struct is used as a key for the per-pipeline variant cache.
When adding fields to this key, reliant features should take care to limit the combinatorical explosion of variations. A sufficiently complicated Flutter application may easily require building hundreds of PSOs in total, but they shouldn't require e.g. 10s of thousands.
Definition at line 263 of file content_context.h.
|
strong |
Definition at line 264 of file content_context.h.
void impeller::ContentContextOptions::ApplyToPipelineDescriptor | ( | PipelineDescriptor & | desc | ) | const |
Definition at line 28 of file content_context.cc.
BlendMode impeller::ContentContextOptions::blend_mode = BlendMode::kSourceOver |
Definition at line 317 of file content_context.h.
PixelFormat impeller::ContentContextOptions::color_attachment_pixel_format = PixelFormat::kUnknown |
Definition at line 321 of file content_context.h.
CompareFunction impeller::ContentContextOptions::depth_compare = CompareFunction::kAlways |
Definition at line 318 of file content_context.h.
bool impeller::ContentContextOptions::depth_write_enabled = false |
Definition at line 323 of file content_context.h.
bool impeller::ContentContextOptions::has_depth_stencil_attachments = true |
Definition at line 322 of file content_context.h.
bool impeller::ContentContextOptions::is_for_rrect_blur_clear = false |
Definition at line 325 of file content_context.h.
PrimitiveType impeller::ContentContextOptions::primitive_type = PrimitiveType::kTriangle |
Definition at line 320 of file content_context.h.
SampleCount impeller::ContentContextOptions::sample_count = SampleCount::kCount1 |
Definition at line 316 of file content_context.h.
StencilMode impeller::ContentContextOptions::stencil_mode = ContentContextOptions::StencilMode::kIgnore |
Definition at line 319 of file content_context.h.
bool impeller::ContentContextOptions::wireframe = false |
Definition at line 324 of file content_context.h.