pub struct MslLoweringConfig {
pub metal_version: (u32, u32),
pub simd_groups: bool,
pub threadgroup_size: (u32, u32, u32),
pub indirect_commands: bool,
pub enable_hlc: bool,
pub enable_k2k: bool,
pub debug: bool,
}Expand description
MSL lowering configuration.
Fields§
§metal_version: (u32, u32)Metal language version (e.g., 2.4, 3.0).
simd_groups: boolEnable SIMD group operations.
threadgroup_size: (u32, u32, u32)Threadgroup size.
indirect_commands: boolEnable indirect command buffers.
enable_hlc: boolEnable HLC (Hybrid Logical Clocks).
enable_k2k: boolEnable K2K messaging.
debug: boolGenerate debug comments.
Implementations§
Source§impl MslLoweringConfig
impl MslLoweringConfig
Sourcepub fn with_threadgroup_size(self, x: u32, y: u32, z: u32) -> Self
pub fn with_threadgroup_size(self, x: u32, y: u32, z: u32) -> Self
Set threadgroup size.
Sourcepub fn with_persistent(self) -> Self
pub fn with_persistent(self) -> Self
Enable persistent kernel features.
Trait Implementations§
Source§impl Clone for MslLoweringConfig
impl Clone for MslLoweringConfig
Source§fn clone(&self) -> MslLoweringConfig
fn clone(&self) -> MslLoweringConfig
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 MslLoweringConfig
impl Debug for MslLoweringConfig
Auto Trait Implementations§
impl Freeze for MslLoweringConfig
impl RefUnwindSafe for MslLoweringConfig
impl Send for MslLoweringConfig
impl Sync for MslLoweringConfig
impl Unpin for MslLoweringConfig
impl UnwindSafe for MslLoweringConfig
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