pub enum RecordedCommand {
Draw {
pipeline: PipelineHandle,
vertex_count: u32,
instance_count: u32,
},
DrawIndexed {
pipeline: PipelineHandle,
index_count: u32,
instance_count: u32,
},
Dispatch {
pipeline: ComputePipelineHandle,
x: u32,
y: u32,
z: u32,
},
WriteBuffer {
buffer: BufferHandle,
data: Vec<u8>,
},
CopyBuffer {
src: BufferHandle,
dst: BufferHandle,
size: usize,
},
}Expand description
A recorded GPU command (opaque).
Variants§
Trait Implementations§
Source§impl Clone for RecordedCommand
impl Clone for RecordedCommand
Source§fn clone(&self) -> RecordedCommand
fn clone(&self) -> RecordedCommand
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 RecordedCommand
impl RefUnwindSafe for RecordedCommand
impl Send for RecordedCommand
impl Sync for RecordedCommand
impl Unpin for RecordedCommand
impl UnsafeUnpin for RecordedCommand
impl UnwindSafe for RecordedCommand
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