#include <pipeline_descriptor.h>
Definition at line 24 of file pipeline_descriptor.h.
|
default |
|
default |
PipelineDescriptor & impeller::PipelineDescriptor::AddStageEntrypoint | ( | std::shared_ptr< const ShaderFunction > | function | ) |
Definition at line 81 of file pipeline_descriptor.cc.
References impeller::kUnknown.
Referenced by impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), and impeller::testing::TEST_P().
void impeller::PipelineDescriptor::ClearColorAttachment | ( | size_t | index | ) |
Definition at line 181 of file pipeline_descriptor.cc.
void impeller::PipelineDescriptor::ClearDepthAttachment | ( | ) |
Definition at line 176 of file pipeline_descriptor.cc.
References impeller::kUnknown, and SetDepthPixelFormat().
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor().
void impeller::PipelineDescriptor::ClearStencilAttachments | ( | ) |
Definition at line 170 of file pipeline_descriptor.cc.
References impeller::kUnknown, and SetStencilPixelFormat().
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor().
std::optional< StencilAttachmentDescriptor > impeller::PipelineDescriptor::GetBackStencilAttachmentDescriptor | ( | ) | const |
Definition at line 243 of file pipeline_descriptor.cc.
Referenced by impeller::ConfigureStencil(), and impeller::CreateDepthStencilDescriptor().
const ColorAttachmentDescriptor * impeller::PipelineDescriptor::GetColorAttachmentDescriptor | ( | size_t | index | ) | const |
Definition at line 124 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), and GetLegacyCompatibleColorAttachment().
const std::map< size_t, ColorAttachmentDescriptor > & impeller::PipelineDescriptor::GetColorAttachmentDescriptors | ( | ) | const |
Definition at line 212 of file pipeline_descriptor.cc.
Referenced by impeller::CreateCompatRenderPassForPipeline(), and impeller::GetMTLRenderPipelineDescriptor().
CullMode impeller::PipelineDescriptor::GetCullMode | ( | ) | const |
Definition at line 256 of file pipeline_descriptor.cc.
PixelFormat impeller::PipelineDescriptor::GetDepthPixelFormat | ( | ) | const |
Definition at line 238 of file pipeline_descriptor.cc.
Referenced by impeller::CreateCompatRenderPassForPipeline(), and impeller::GetMTLRenderPipelineDescriptor().
std::optional< DepthAttachmentDescriptor > impeller::PipelineDescriptor::GetDepthStencilAttachmentDescriptor | ( | ) | const |
Definition at line 207 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), impeller::CreateCompatRenderPassForPipeline(), and impeller::CreateDepthStencilDescriptor().
std::shared_ptr< const ShaderFunction > impeller::PipelineDescriptor::GetEntrypointForStage | ( | ShaderStage | stage | ) | const |
Definition at line 226 of file pipeline_descriptor.cc.
std::optional< StencilAttachmentDescriptor > impeller::PipelineDescriptor::GetFrontStencilAttachmentDescriptor | ( | ) | const |
Definition at line 202 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), impeller::ConfigureStencil(), and impeller::CreateDepthStencilDescriptor().
|
overridevirtual |
Implements impeller::Comparable< PipelineDescriptor >.
Definition at line 22 of file pipeline_descriptor.cc.
Referenced by impeller::testing::TEST().
std::string_view impeller::PipelineDescriptor::GetLabel | ( | ) | const |
Definition at line 234 of file pipeline_descriptor.cc.
Referenced by impeller::PipelineVK::Create(), impeller::CreateCompatRenderPassForPipeline(), impeller::GetMTLRenderPipelineDescriptor(), and impeller::ReportPipelineCreationFeedbackToLog().
const ColorAttachmentDescriptor * impeller::PipelineDescriptor::GetLegacyCompatibleColorAttachment | ( | ) | const |
Definition at line 131 of file pipeline_descriptor.cc.
References GetColorAttachmentDescriptor().
size_t impeller::PipelineDescriptor::GetMaxColorAttacmentBindIndex | ( | ) | const |
Definition at line 102 of file pipeline_descriptor.cc.
PolygonMode impeller::PipelineDescriptor::GetPolygonMode | ( | ) | const |
Definition at line 280 of file pipeline_descriptor.cc.
PrimitiveType impeller::PipelineDescriptor::GetPrimitiveType | ( | ) | const |
Definition at line 272 of file pipeline_descriptor.cc.
|
inline |
Definition at line 36 of file pipeline_descriptor.h.
Referenced by impeller::CreateCompatRenderPassForPipeline(), and impeller::GetMTLRenderPipelineDescriptor().
const std::vector< Scalar > & impeller::PipelineDescriptor::GetSpecializationConstants | ( | ) | const |
Definition at line 289 of file pipeline_descriptor.cc.
Referenced by impeller::GetMTLRenderPipelineDescriptor().
const std::map< ShaderStage, std::shared_ptr< const ShaderFunction > > & impeller::PipelineDescriptor::GetStageEntrypoints | ( | ) | const |
Definition at line 222 of file pipeline_descriptor.cc.
Referenced by impeller::GetMTLRenderPipelineDescriptor().
PixelFormat impeller::PipelineDescriptor::GetStencilPixelFormat | ( | ) | const |
Definition at line 197 of file pipeline_descriptor.cc.
Referenced by impeller::CreateCompatRenderPassForPipeline(), and impeller::GetMTLRenderPipelineDescriptor().
const std::shared_ptr< VertexDescriptor > & impeller::PipelineDescriptor::GetVertexDescriptor | ( | ) | const |
Definition at line 217 of file pipeline_descriptor.cc.
Referenced by impeller::GetMTLRenderPipelineDescriptor().
WindingOrder impeller::PipelineDescriptor::GetWindingOrder | ( | ) | const |
Definition at line 264 of file pipeline_descriptor.cc.
bool impeller::PipelineDescriptor::HasStencilAttachmentDescriptors | ( | ) | const |
Definition at line 247 of file pipeline_descriptor.cc.
Referenced by impeller::ConfigureStencil(), and impeller::CreateCompatRenderPassForPipeline().
|
overridevirtual |
Implements impeller::Comparable< PipelineDescriptor >.
Definition at line 52 of file pipeline_descriptor.cc.
References impeller::DeepCompareMap(), and impeller::DeepComparePointer().
Referenced by impeller::testing::TEST().
void impeller::PipelineDescriptor::ResetAttachments | ( | ) |
Definition at line 190 of file pipeline_descriptor.cc.
PipelineDescriptor & impeller::PipelineDescriptor::SetColorAttachmentDescriptor | ( | size_t | index, |
ColorAttachmentDescriptor | desc | ||
) |
Definition at line 110 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), and impeller::testing::TEST_P().
PipelineDescriptor & impeller::PipelineDescriptor::SetColorAttachmentDescriptors | ( | std::map< size_t, ColorAttachmentDescriptor > | descriptors | ) |
Definition at line 117 of file pipeline_descriptor.cc.
void impeller::PipelineDescriptor::SetCullMode | ( | CullMode | mode | ) |
Definition at line 252 of file pipeline_descriptor.cc.
PipelineDescriptor & impeller::PipelineDescriptor::SetDepthPixelFormat | ( | PixelFormat | format | ) |
Definition at line 139 of file pipeline_descriptor.cc.
Referenced by ClearDepthAttachment(), and impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults().
PipelineDescriptor & impeller::PipelineDescriptor::SetDepthStencilAttachmentDescriptor | ( | std::optional< DepthAttachmentDescriptor > | desc | ) |
Definition at line 151 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), and impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults().
PipelineDescriptor & impeller::PipelineDescriptor::SetLabel | ( | std::string_view | label | ) |
Definition at line 71 of file pipeline_descriptor.cc.
Referenced by impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), and impeller::testing::TEST_P().
void impeller::PipelineDescriptor::SetPolygonMode | ( | PolygonMode | mode | ) |
Definition at line 276 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor().
void impeller::PipelineDescriptor::SetPrimitiveType | ( | PrimitiveType | type | ) |
Definition at line 268 of file pipeline_descriptor.cc.
References type.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), and impeller::testing::TEST().
PipelineDescriptor & impeller::PipelineDescriptor::SetSampleCount | ( | SampleCount | samples | ) |
Definition at line 76 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor().
void impeller::PipelineDescriptor::SetSpecializationConstants | ( | std::vector< Scalar > | values | ) |
Definition at line 284 of file pipeline_descriptor.cc.
PipelineDescriptor & impeller::PipelineDescriptor::SetStencilAttachmentDescriptors | ( | std::optional< StencilAttachmentDescriptor > | front, |
std::optional< StencilAttachmentDescriptor > | back | ||
) |
Definition at line 162 of file pipeline_descriptor.cc.
PipelineDescriptor & impeller::PipelineDescriptor::SetStencilAttachmentDescriptors | ( | std::optional< StencilAttachmentDescriptor > | front_and_back | ) |
Definition at line 157 of file pipeline_descriptor.cc.
Referenced by impeller::ContentContextOptions::ApplyToPipelineDescriptor(), impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), and impeller::testing::TEST_P().
PipelineDescriptor & impeller::PipelineDescriptor::SetStencilPixelFormat | ( | PixelFormat | format | ) |
Definition at line 145 of file pipeline_descriptor.cc.
Referenced by ClearStencilAttachments(), impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), and impeller::testing::TEST_P().
PipelineDescriptor & impeller::PipelineDescriptor::SetVertexDescriptor | ( | std::shared_ptr< VertexDescriptor > | vertex_descriptor | ) |
Definition at line 96 of file pipeline_descriptor.cc.
Referenced by impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), impeller::testing::TEST(), and impeller::testing::TEST_P().
void impeller::PipelineDescriptor::SetWindingOrder | ( | WindingOrder | order | ) |
Definition at line 260 of file pipeline_descriptor.cc.