pub struct CommandList { /* private fields */ }Expand description
Records dispatches for one frame into one command buffer.
Implementations§
Source§impl CommandList
impl CommandList
pub fn dispatch( &mut self, kernel: &Kernel, out: &Texture, inputs: &[&Texture], params: &[f32], )
pub fn dispatch_ex( &mut self, kernel: &Kernel, out: &Texture, inputs: &[&Texture], params: &[f32], b: Bindings<'_>, )
Sourcepub fn draw_pass(&mut self, target: DrawTarget<'_>, draws: &[Draw<'_>])
pub fn draw_pass(&mut self, target: DrawTarget<'_>, draws: &[Draw<'_>])
Runs a 3D pass: clears, draws, and resolves into target.resolve.
pub fn clear_buffer_range(&mut self, buf: &Buffer, offset: usize, len: usize)
pub fn clear_buffer(&mut self, buf: &Buffer)
pub fn copy_texture(&mut self, src: &Texture, dst: &Texture)
pub fn submit(self) -> Submitted
Trait Implementations§
Auto Trait Implementations§
impl !Send for CommandList
impl !Sync for CommandList
impl Forget for CommandList
impl Freeze for CommandList
impl Move for CommandList
impl RefUnwindSafe for CommandList
impl Unpin for CommandList
impl UnsafeUnpin for CommandList
impl UnwindSafe for CommandList
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