pub enum GpuCommand {
ClearRenderBuffer {
render_buffer_id: u32,
},
DrawGeometry {
gpu_state: Box<GpuState>,
geometry_id: u32,
indices_offset: u32,
indices_count: u32,
},
}
Expand description
The GPU command to be executed.
This describes a command to be executed on the GPU.
Commands are dispatched to the GPU driver asynchronously via
update_command_list
,
the GPU driver should consume these commands and execute them at an appropriate time.
Variants§
ClearRenderBuffer
Clear a specific render buffer, to be prepared for drawing.
DrawGeometry
Performs a draw command.
Fields
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 moreSource§impl Debug for GpuCommand
impl Debug for GpuCommand
Auto Trait Implementations§
impl Freeze for GpuCommand
impl RefUnwindSafe for GpuCommand
impl Send for GpuCommand
impl Sync for GpuCommand
impl Unpin 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