pub enum ExecutionModeArguments {
None,
Literal(u32),
LocalSize {
x: u32,
y: u32,
z: u32,
},
LocalSizeId {
x: Handle<ConstantId>,
y: Handle<ConstantId>,
z: Handle<ConstantId>,
},
}Expand description
Arguments to an OpExecutionMode.
Variants§
None
No arguments.
This is also used to set execution modes for modes that don’t have arguments.
Literal(u32)
A single literal argument.
LocalSize
Arguments to LocalSize execution mode.
LocalSizeId
Arguments to LocalSizeId execution mode.
Fields
§
x: Handle<ConstantId>Workgroup size x ID.
§
y: Handle<ConstantId>Workgroup size y ID.
§
z: Handle<ConstantId>Workgroup size z ID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionModeArguments
impl RefUnwindSafe for ExecutionModeArguments
impl Send for ExecutionModeArguments
impl Sync for ExecutionModeArguments
impl Unpin for ExecutionModeArguments
impl UnwindSafe for ExecutionModeArguments
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