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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.