pub struct AllocatorCreateDesc {
pub device: Retained<ProtocolObject<dyn MTLDevice>>,
pub debug_settings: AllocatorDebugSettings,
pub allocation_sizes: AllocationSizes,
pub create_residency_set: bool,
}
Fields§
§device: Retained<ProtocolObject<dyn MTLDevice>>
§debug_settings: AllocatorDebugSettings
§allocation_sizes: AllocationSizes
§create_residency_set: bool
Whether to create a MTLResidencySet
containing all live heaps, that can be retrieved via
Allocator::residency_set()
. Only supported on MacOS 15.0+
/ iOS 18.0+
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllocatorCreateDesc
impl !RefUnwindSafe for AllocatorCreateDesc
impl !Send for AllocatorCreateDesc
impl !Sync for AllocatorCreateDesc
impl Unpin for AllocatorCreateDesc
impl !UnwindSafe for AllocatorCreateDesc
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