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
BeginRenderPass
Begins the render pass.
EndRenderPass
Ends the render pass.
PushConstants
BindVertexBuffer
Draw
Draws a graphical primitive.
Implementations§
source§impl RenderCommand
impl RenderCommand
sourcepub fn into_platform_command(
&self,
render_context: &mut RenderContext
) -> Command<Backend>
pub fn into_platform_command(
&self,
render_context: &mut RenderContext
) -> Command<Backend>
Converts the RenderCommand into a platform compatible render command.
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