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.
Auto Trait Implementations§
impl Freeze for RenderPipelineBuilder
impl RefUnwindSafe for RenderPipelineBuilder
impl !Send for RenderPipelineBuilder
impl !Sync for RenderPipelineBuilder
impl Unpin for RenderPipelineBuilder
impl UnwindSafe for RenderPipelineBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more