Enum lambda::render::command::RenderCommand
source · pub enum RenderCommand {
SetViewports {
start_at: u32,
viewports: Vec<Viewport>,
},
SetScissors {
start_at: u32,
viewports: Vec<Viewport>,
},
SetPipeline {
pipeline: ResourceId,
},
BeginRenderPass {
render_pass: ResourceId,
viewport: Viewport,
},
EndRenderPass,
PushConstants {
pipeline: ResourceId,
stage: PipelineStage,
offset: u32,
bytes: Vec<u32>,
},
BindVertexBuffer {
pipeline: ResourceId,
buffer: u32,
},
Draw {
vertices: Range<u32>,
},
}
Expand description
Commands that are used to render a frame within the RenderContext.
Variants§
SetViewports
sets the viewports for the render context.
SetScissors
sets the scissor rectangles for the render context.
SetPipeline
Fields
§
pipeline: ResourceId
Sets the pipeline to use for the render context.
BeginRenderPass
Begins the render pass.
EndRenderPass
Ends the render pass.
PushConstants
Sets the push constants for the render pipeline.
BindVertexBuffer
Binds a vertex buffer to the render pipeline.
Draw
Draws a graphical primitive.
Trait Implementations§
source§impl Clone for RenderCommand
impl Clone for RenderCommand
source§fn clone(&self) -> RenderCommand
fn clone(&self) -> RenderCommand
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