pub enum GpuCommand {
CopyBufferToBuffer {
src: BufferHandle,
dst: BufferHandle,
size: usize,
},
CopyBufferToTexture {
src: BufferHandle,
dst: TextureHandle,
width: u32,
height: u32,
},
Draw {
pipeline: PipelineHandle,
vertex_buffer: BufferHandle,
vertex_count: u32,
instance_count: u32,
},
DrawIndexed {
pipeline: PipelineHandle,
vertex_buffer: BufferHandle,
index_buffer: BufferHandle,
index_count: u32,
instance_count: u32,
},
Dispatch {
pipeline: ComputePipelineHandle,
x: u32,
y: u32,
z: u32,
},
SetBindGroup {
index: u32,
buffers: Vec<BufferHandle>,
},
Barrier,
}Expand description
A GPU command that can be recorded and submitted.
Variants§
CopyBufferToBuffer
CopyBufferToTexture
Draw
DrawIndexed
Dispatch
SetBindGroup
Barrier
Trait Implementations§
Source§impl Clone for GpuCommand
impl Clone for GpuCommand
Source§fn clone(&self) -> GpuCommand
fn clone(&self) -> GpuCommand
Returns a duplicate 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 GpuCommand
impl RefUnwindSafe for GpuCommand
impl Send for GpuCommand
impl Sync for GpuCommand
impl Unpin for GpuCommand
impl UnsafeUnpin for GpuCommand
impl UnwindSafe for GpuCommand
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