pub struct MetalConfig {
pub device_id: u32,
pub enable_private_memory: bool,
pub enable_shared_memory: bool,
pub enable_managed_memory: bool,
pub enable_memory_pools: bool,
pub enable_async_ops: bool,
pub pool_growth_size: usize,
pub enable_memoryless_targets: bool,
pub max_command_queues: u32,
pub enable_mps: bool,
pub enable_heap_allocation: bool,
}Expand description
Metal backend configuration
Fields§
§device_id: u32Device ID to use
enable_private_memory: boolEnable private memory
Enable shared memory
enable_managed_memory: boolEnable managed memory
enable_memory_pools: boolEnable memory pools
enable_async_ops: boolEnable async memory operations
pool_growth_size: usizeMemory pool growth size
enable_memoryless_targets: boolEnable memoryless render targets
max_command_queues: u32Maximum number of command queues
enable_mps: boolEnable Metal Performance Shaders
enable_heap_allocation: boolEnable heap-based allocation
Trait Implementations§
Source§impl Clone for MetalConfig
impl Clone for MetalConfig
Source§fn clone(&self) -> MetalConfig
fn clone(&self) -> MetalConfig
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 MetalConfig
impl Debug for MetalConfig
Auto Trait Implementations§
impl Freeze for MetalConfig
impl RefUnwindSafe for MetalConfig
impl Send for MetalConfig
impl Sync for MetalConfig
impl Unpin for MetalConfig
impl UnsafeUnpin for MetalConfig
impl UnwindSafe for MetalConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more