#[repr(C, packed(1))]pub struct DispatchThreadsIndirectArguments {
pub threads_per_grid: [u32; 3],
pub threads_per_threadgroup: [u32; 3],
}Expand description
Indirect arguments for dispatching threads.
C++ equivalent: MTL::DispatchThreadsIndirectArguments
Fields§
§threads_per_grid: [u32; 3]§threads_per_threadgroup: [u32; 3]Trait Implementations§
Source§impl Clone for DispatchThreadsIndirectArguments
impl Clone for DispatchThreadsIndirectArguments
Source§fn clone(&self) -> DispatchThreadsIndirectArguments
fn clone(&self) -> DispatchThreadsIndirectArguments
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 Default for DispatchThreadsIndirectArguments
impl Default for DispatchThreadsIndirectArguments
Source§fn default() -> DispatchThreadsIndirectArguments
fn default() -> DispatchThreadsIndirectArguments
Returns the “default value” for a type. Read more
Source§impl PartialEq for DispatchThreadsIndirectArguments
impl PartialEq for DispatchThreadsIndirectArguments
Source§fn eq(&self, other: &DispatchThreadsIndirectArguments) -> bool
fn eq(&self, other: &DispatchThreadsIndirectArguments) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DispatchThreadsIndirectArguments
impl Eq for DispatchThreadsIndirectArguments
impl StructuralPartialEq for DispatchThreadsIndirectArguments
Auto Trait Implementations§
impl Freeze for DispatchThreadsIndirectArguments
impl RefUnwindSafe for DispatchThreadsIndirectArguments
impl Send for DispatchThreadsIndirectArguments
impl Sync for DispatchThreadsIndirectArguments
impl Unpin for DispatchThreadsIndirectArguments
impl UnwindSafe for DispatchThreadsIndirectArguments
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