#[repr(transparent)]pub struct MTLHeapType(pub NSInteger);Available on crate feature
MTLHeap only.Expand description
Describes the mode of operation for an MTLHeap.
In this mode, resources are placed in the heap automatically. Automatically placed resources have optimal GPU-specific layout, and may perform better than MTLHeapTypePlacement. This heap type is recommended when the heap primarily contains temporary write-often resources.
In this mode, the app places resources in the heap. Manually placed resources allow the app to control memory usage and heap fragmentation directly. This heap type is recommended when the heap primarily contains persistent write-rarely resources.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Trait Implementations§
Source§impl Clone for MTLHeapType
impl Clone for MTLHeapType
Source§fn clone(&self) -> MTLHeapType
fn clone(&self) -> MTLHeapType
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 MTLHeapType
impl Debug for MTLHeapType
Source§impl Encode for MTLHeapType
impl Encode for MTLHeapType
Source§impl Hash for MTLHeapType
impl Hash for MTLHeapType
Source§impl Ord for MTLHeapType
impl Ord for MTLHeapType
Source§fn cmp(&self, other: &MTLHeapType) -> Ordering
fn cmp(&self, other: &MTLHeapType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MTLHeapType
impl PartialEq for MTLHeapType
Source§impl PartialOrd for MTLHeapType
impl PartialOrd for MTLHeapType
Source§impl RefEncode for MTLHeapType
impl RefEncode for MTLHeapType
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MTLHeapType
impl Eq for MTLHeapType
impl StructuralPartialEq for MTLHeapType
Auto Trait Implementations§
impl Freeze for MTLHeapType
impl RefUnwindSafe for MTLHeapType
impl Send for MTLHeapType
impl Sync for MTLHeapType
impl Unpin for MTLHeapType
impl UnwindSafe for MTLHeapType
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> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.