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
Sets the pipeline to use for the render context.
Fields
§
pipeline: ResourceId
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 moreAuto Trait Implementations§
impl Freeze for RenderCommand
impl RefUnwindSafe for RenderCommand
impl Send for RenderCommand
impl Sync for RenderCommand
impl Unpin for RenderCommand
impl UnwindSafe for RenderCommand
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