pub struct KernelAttributes {
pub workgroup_size: Option<[u32; 3]>,
pub max_registers: Option<u32>,
}Expand description
Attributes controlling kernel compilation behavior.
Fields§
§workgroup_size: Option<[u32; 3]>Requested workgroup size [x, y, z].
max_registers: Option<u32>Maximum number of registers to use.
Trait Implementations§
Source§impl Clone for KernelAttributes
impl Clone for KernelAttributes
Source§fn clone(&self) -> KernelAttributes
fn clone(&self) -> KernelAttributes
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 KernelAttributes
impl Debug for KernelAttributes
Source§impl Default for KernelAttributes
impl Default for KernelAttributes
Source§fn default() -> KernelAttributes
fn default() -> KernelAttributes
Returns the “default value” for a type. Read more
Source§impl PartialEq for KernelAttributes
impl PartialEq for KernelAttributes
impl StructuralPartialEq for KernelAttributes
Auto Trait Implementations§
impl Freeze for KernelAttributes
impl RefUnwindSafe for KernelAttributes
impl Send for KernelAttributes
impl Sync for KernelAttributes
impl Unpin for KernelAttributes
impl UnsafeUnpin for KernelAttributes
impl UnwindSafe for KernelAttributes
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