Struct simple_wgpu::RenderPipelineBuilder
source · pub struct RenderPipelineBuilder { /* private fields */ }
Expand description
Builds a RenderPipeline
Implementations§
source§impl RenderPipelineBuilder
impl RenderPipelineBuilder
pub fn with_vertex<I>(entry_point: &EntryPoint, vertex_buffer_layout: I) -> Selfwhere I: Into<Vec<VertexBufferLayout>>,
pub fn vertex<I>( self, entry_point: &EntryPoint, vertex_buffer_layout: I ) -> Selfwhere I: Into<Vec<VertexBufferLayout>>,
pub fn fragment<I>(self, entry_point: &EntryPoint, targets: I) -> Selfwhere I: Into<Vec<Option<ColorTargetState>>>,
pub fn no_fragment(self) -> Self
sourcepub fn label(self, label: &str) -> Self
pub fn label(self, label: &str) -> Self
Set the optional debug name. This may appear in error messages and GPU profiler traces
pub fn build(self) -> RenderPipeline
Trait Implementations§
source§impl Clone for RenderPipelineBuilder
impl Clone for RenderPipelineBuilder
source§fn clone(&self) -> RenderPipelineBuilder
fn clone(&self) -> RenderPipelineBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more