pub struct CommandBuilder { /* private fields */ }Expand description
Fluent builder for compute dispatch commands
This builder provides a safe, ergonomic API for recording and executing compute commands. All Kronos optimizations are applied automatically.
Implementations§
Source§impl CommandBuilder
impl CommandBuilder
Sourcepub fn bind_buffer(self, binding: u32, buffer: &Buffer) -> Self
pub fn bind_buffer(self, binding: u32, buffer: &Buffer) -> Self
Bind a buffer to a binding point
Sourcepub fn push_constants<T: Copy>(self, data: &T) -> Self
pub fn push_constants<T: Copy>(self, data: &T) -> Self
Set push constants
Sourcepub fn workgroups(self, x: u32, y: u32, z: u32) -> Self
pub fn workgroups(self, x: u32, y: u32, z: u32) -> Self
Set the number of workgroups
Auto Trait Implementations§
impl Freeze for CommandBuilder
impl RefUnwindSafe for CommandBuilder
impl Send for CommandBuilder
impl Sync for CommandBuilder
impl Unpin for CommandBuilder
impl UnwindSafe for CommandBuilder
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