pub enum DispatchKind {
Threads,
ThreadGroups,
}Expand description
How to dispatch the recorded kernel.
Variants§
Threads
dispatch_threads(grid_size, threadgroup_size) — Metal picks threadgroup count.
ThreadGroups
dispatch_thread_groups(threadgroups, threadgroup_size) — caller specifies threadgroup count.
Trait Implementations§
Source§impl Clone for DispatchKind
impl Clone for DispatchKind
Source§fn clone(&self) -> DispatchKind
fn clone(&self) -> DispatchKind
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 DispatchKind
impl Debug for DispatchKind
impl Copy for DispatchKind
Auto Trait Implementations§
impl Freeze for DispatchKind
impl RefUnwindSafe for DispatchKind
impl Send for DispatchKind
impl Sync for DispatchKind
impl Unpin for DispatchKind
impl UnsafeUnpin for DispatchKind
impl UnwindSafe for DispatchKind
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