Enum cubecl_core::compute::CubeCount
source · pub enum CubeCount<S: ComputeServer> {
Static(u32, u32, u32),
Dynamic(Binding<S>),
}
Expand description
Provides launch information specifying the number of work groups to be used by a compute shader.
Variants§
Static(u32, u32, u32)
Dispatch x,y,z work groups.
Dynamic(Binding<S>)
Dispatch work groups based on the values in this buffer. The buffer should contain a u32 array [x, y, z].
Trait Implementations§
source§impl<S: ComputeServer> Clone for CubeCount<S>
impl<S: ComputeServer> Clone for CubeCount<S>
Auto Trait Implementations§
impl<S> Freeze for CubeCount<S>where
<<S as ComputeServer>::MemoryManagement as MemoryManagement<<S as ComputeServer>::Storage>>::Binding: Freeze,
impl<S> RefUnwindSafe for CubeCount<S>where
<<S as ComputeServer>::MemoryManagement as MemoryManagement<<S as ComputeServer>::Storage>>::Binding: RefUnwindSafe,
impl<S> Send for CubeCount<S>
impl<S> Sync for CubeCount<S>
impl<S> Unpin for CubeCount<S>where
<<S as ComputeServer>::MemoryManagement as MemoryManagement<<S as ComputeServer>::Storage>>::Binding: Unpin,
impl<S> UnwindSafe for CubeCount<S>where
<<S as ComputeServer>::MemoryManagement as MemoryManagement<<S as ComputeServer>::Storage>>::Binding: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)