Struct lambda::render::pipeline::RenderPipelineBuilder
source · pub struct RenderPipelineBuilder { /* private fields */ }
Implementations§
source§impl RenderPipelineBuilder
impl RenderPipelineBuilder
sourcepub fn with_buffer(self, buffer: Buffer, attributes: Vec<VertexAttribute>) -> Self
pub fn with_buffer(self, buffer: Buffer, attributes: Vec<VertexAttribute>) -> Self
Adds a buffer to the render pipeline.
sourcepub fn with_push_constant(self, stage: PipelineStage, bytes: u32) -> Self
pub fn with_push_constant(self, stage: PipelineStage, bytes: u32) -> Self
Adds a push constant to the render pipeline at the given stage with the given size in bytes.
sourcepub fn build(
self,
render_context: &mut RenderContext,
render_pass: &RenderPass,
vertex_shader: &Shader,
fragment_shader: Option<&Shader>
) -> RenderPipeline
pub fn build(
self,
render_context: &mut RenderContext,
render_pass: &RenderPass,
vertex_shader: &Shader,
fragment_shader: Option<&Shader>
) -> RenderPipeline
Builds a render pipeline based on your builder configuration.