pub struct MetalOptimizationConfig {
pub enable_mps: bool,
pub enable_unified_memory: bool,
pub enable_threadgroup_memory: bool,
pub enable_argument_buffers: bool,
pub threadgroup_size: (u32, u32, u32),
}Expand description
Metal optimization configuration.
Fields§
§enable_mps: boolEnable Metal Performance Shaders (MPS).
enable_unified_memory: boolEnable unified memory optimization.
enable_threadgroup_memory: boolEnable threadgroup memory optimization.
enable_argument_buffers: boolEnable argument buffers.
threadgroup_size: (u32, u32, u32)Preferred threadgroup size.
Trait Implementations§
Source§impl Clone for MetalOptimizationConfig
impl Clone for MetalOptimizationConfig
Source§fn clone(&self) -> MetalOptimizationConfig
fn clone(&self) -> MetalOptimizationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetalOptimizationConfig
impl Debug for MetalOptimizationConfig
Auto Trait Implementations§
impl Freeze for MetalOptimizationConfig
impl RefUnwindSafe for MetalOptimizationConfig
impl Send for MetalOptimizationConfig
impl Sync for MetalOptimizationConfig
impl Unpin for MetalOptimizationConfig
impl UnsafeUnpin for MetalOptimizationConfig
impl UnwindSafe for MetalOptimizationConfig
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