An optional (but highly recommended) utility for creating pipelines from reflected shader information. More...
#include <pipeline_builder.h>
Public Types | |
| using | VertexShader = VertexShader_ |
| using | FragmentShader = FragmentShader_ |
Static Public Member Functions | |
| static std::optional< PipelineDescriptor > | MakeDefaultPipelineDescriptor (const Context &context) |
| Create a default pipeline descriptor using the combination reflected shader information. The descriptor can be configured further before a pipeline state object is created using it. More... | |
| static bool | InitializePipelineDescriptorDefaults (const Context &context, PipelineDescriptor &desc) |
Static Public Attributes | |
| static constexpr size_t | kVertexBufferIndex |
An optional (but highly recommended) utility for creating pipelines from reflected shader information.
| VertexShader_ | The reflected vertex shader information. Found in a generated header file called <shader_name>.vert.h. |
| FragmentShader_ | The reflected fragment shader information. Found in a generated header file called <shader_name>.frag.h. |
Definition at line 31 of file pipeline_builder.h.
| using impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::FragmentShader = FragmentShader_ |
Definition at line 34 of file pipeline_builder.h.
| using impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::VertexShader = VertexShader_ |
Definition at line 33 of file pipeline_builder.h.
|
inlinestatic |
Definition at line 59 of file pipeline_builder.h.
References impeller::PipelineDescriptor::AddStageEntrypoint(), impeller::ColorAttachmentDescriptor::blending_enabled, impeller::ColorAttachmentDescriptor::format, impeller::Context::GetCapabilities(), impeller::Context::GetShaderLibrary(), impeller::kEqual, impeller::kFragment, impeller::kVertex, impeller::PipelineDescriptor::SetColorAttachmentDescriptor(), impeller::PipelineDescriptor::SetLabel(), impeller::PipelineDescriptor::SetStencilAttachmentDescriptors(), impeller::PipelineDescriptor::SetStencilPixelFormat(), impeller::PipelineDescriptor::SetVertexDescriptor(), impeller::SPrintF(), impeller::StencilAttachmentDescriptor::stencil_compare, and VALIDATION_LOG.
Referenced by impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::MakeDefaultPipelineDescriptor().
|
inlinestatic |
Create a default pipeline descriptor using the combination reflected shader information. The descriptor can be configured further before a pipeline state object is created using it.
| [in] | context | The context |
Definition at line 50 of file pipeline_builder.h.
References impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults().
Referenced by impeller::ContentContext::ContentContext(), and impeller::testing::TEST_P().
|
staticconstexpr |
Definition at line 36 of file pipeline_builder.h.