#include <content_context.h>
Classes | |
| struct | Equal |
| struct | Hash |
Public Member Functions | |
| void | ApplyToPipelineDescriptor (PipelineDescriptor &desc) const |
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 302 of file content_context.h.
| void impeller::ContentContextOptions::ApplyToPipelineDescriptor | ( | PipelineDescriptor & | desc | ) | const |
Definition at line 23 of file content_context.cc.
References impeller::ColorAttachmentDescriptor::alpha_blend_op, blend_mode, impeller::ColorAttachmentDescriptor::blending_enabled, impeller::PipelineDescriptor::ClearStencilAttachments(), color_attachment_pixel_format, impeller::ColorAttachmentDescriptor::color_blend_op, impeller::StencilAttachmentDescriptor::depth_stencil_pass, impeller::ColorAttachmentDescriptor::dst_alpha_blend_factor, impeller::ColorAttachmentDescriptor::dst_color_blend_factor, impeller::ColorAttachmentDescriptor::format, impeller::PipelineDescriptor::GetColorAttachmentDescriptor(), impeller::PipelineDescriptor::GetFrontStencilAttachmentDescriptor(), has_stencil_attachment, is_for_rrect_blur_clear, impeller::kAdd, impeller::kClear, impeller::kDestination, impeller::kDestinationAlpha, impeller::kDestinationATop, impeller::kDestinationColor, impeller::kDestinationIn, impeller::kDestinationOut, impeller::kDestinationOver, impeller::kFill, impeller::Entity::kLastPipelineBlendMode, impeller::kLine, impeller::kModulate, impeller::kOne, impeller::kOneMinusDestinationAlpha, impeller::kOneMinusSourceAlpha, impeller::kPlus, impeller::kReverseSubtract, impeller::kSource, impeller::kSourceAlpha, impeller::kSourceATop, impeller::kSourceColor, impeller::kSourceIn, impeller::kSourceOut, impeller::kSourceOver, impeller::kXor, impeller::kZero, primitive_type, sample_count, impeller::PipelineDescriptor::SetColorAttachmentDescriptor(), impeller::PipelineDescriptor::SetPolygonMode(), impeller::PipelineDescriptor::SetPrimitiveType(), impeller::PipelineDescriptor::SetSampleCount(), impeller::PipelineDescriptor::SetStencilAttachmentDescriptors(), impeller::ColorAttachmentDescriptor::src_alpha_blend_factor, impeller::ColorAttachmentDescriptor::src_color_blend_factor, stencil_compare, impeller::StencilAttachmentDescriptor::stencil_compare, stencil_operation, VALIDATION_LOG, and wireframe.
| BlendMode impeller::ContentContextOptions::blend_mode = BlendMode::kSourceOver |
Definition at line 304 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), impeller::OptionsFromPassAndEntity(), and impeller::testing::TEST_P().
| PixelFormat impeller::ContentContextOptions::color_attachment_pixel_format = PixelFormat::kUnknown |
Definition at line 308 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), impeller::OptionsFromPass(), and impeller::testing::TEST_P().
| bool impeller::ContentContextOptions::has_stencil_attachment = true |
Definition at line 309 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), impeller::OptionsFromPass(), and impeller::testing::TEST_P().
| bool impeller::ContentContextOptions::is_for_rrect_blur_clear = false |
Definition at line 311 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), and impeller::SolidRRectBlurContents::Render().
| PrimitiveType impeller::ContentContextOptions::primitive_type = PrimitiveType::kTriangle |
Definition at line 307 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), impeller::SolidRRectBlurContents::Render(), and impeller::testing::TEST_P().
| SampleCount impeller::ContentContextOptions::sample_count = SampleCount::kCount1 |
Definition at line 303 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContext::ContentContext(), impeller::CreateDefaultPipeline(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), impeller::OptionsFromPass(), and impeller::testing::TEST_P().
| CompareFunction impeller::ContentContextOptions::stencil_compare = CompareFunction::kEqual |
Definition at line 305 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), and impeller::testing::TEST_P().
| StencilOperation impeller::ContentContextOptions::stencil_operation = StencilOperation::kKeep |
Definition at line 306 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), impeller::ContentContextOptions::Equal::operator()(), and impeller::testing::TEST_P().
| bool impeller::ContentContextOptions::wireframe = false |
Definition at line 310 of file content_context.h.
Referenced by ApplyToPipelineDescriptor(), impeller::ContentContextOptions::Hash::operator()(), and impeller::ContentContextOptions::Equal::operator()().