pub trait RenderPipeline {
Show 13 methods
// Required methods
fn label(&self) -> &str;
fn source(&self) -> &str;
// Provided methods
fn buffers(&self) -> Vec<VertexBufferLayout<'_>> { ... }
fn vertex_compilation(&self) -> PipelineCompilationOptions<'_> { ... }
fn targets<'a>(
&self,
renderer: &Renderer<'_>,
) -> Vec<Option<ColorTargetState>> { ... }
fn fragment_compilation(&self) -> PipelineCompilationOptions<'_> { ... }
fn primitive(&self) -> PrimitiveState { ... }
fn depth_stencil(&self) -> Option<DepthStencilState> { ... }
fn multisample(&self) -> MultisampleState { ... }
fn multiview(&self) -> Option<NonZero<u32>> { ... }
fn cache(&self) -> Option<&PipelineCache> { ... }
fn layout(&self) -> PipelineLayoutDescriptor<'_> { ... }
fn to_wgpu<'a>(&self, renderer: &Renderer<'_>) -> RenderPipeline { ... }
}
Expand description
this trait is for create of render pipelines