#[repr(transparent)]pub struct MTLBufferSparseTier(pub NSInteger);Available on crate feature
MTLResource only.Expand description
Enumerates the different support levels for sparse buffers.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl MTLBufferSparseTier
impl MTLBufferSparseTier
Sourcepub const Tier1: Self
pub const Tier1: Self
Indicates support for sparse buffers tier 1.
Tier 1 sparse buffers allow the following:
- Partial memory backing at sparse page granularity.
- Defined behavior for accessing an unbacked buffer range.
An unbacked buffer range indicates a range within the buffer that doesn’t have memory backing at a given point in time. Accessing an unbacked buffer range of a sparse buffer produces the following results:
- Reading return zero.
- Writing produces no result.
Trait Implementations§
Source§impl Clone for MTLBufferSparseTier
impl Clone for MTLBufferSparseTier
Source§fn clone(&self) -> MTLBufferSparseTier
fn clone(&self) -> MTLBufferSparseTier
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 MTLBufferSparseTier
impl Debug for MTLBufferSparseTier
Source§impl Encode for MTLBufferSparseTier
impl Encode for MTLBufferSparseTier
Source§impl Hash for MTLBufferSparseTier
impl Hash for MTLBufferSparseTier
Source§impl Ord for MTLBufferSparseTier
impl Ord for MTLBufferSparseTier
Source§fn cmp(&self, other: &MTLBufferSparseTier) -> Ordering
fn cmp(&self, other: &MTLBufferSparseTier) -> 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 MTLBufferSparseTier
impl PartialEq for MTLBufferSparseTier
Source§impl PartialOrd for MTLBufferSparseTier
impl PartialOrd for MTLBufferSparseTier
Source§impl RefEncode for MTLBufferSparseTier
impl RefEncode for MTLBufferSparseTier
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 MTLBufferSparseTier
impl Eq for MTLBufferSparseTier
impl StructuralPartialEq for MTLBufferSparseTier
Auto Trait Implementations§
impl Freeze for MTLBufferSparseTier
impl RefUnwindSafe for MTLBufferSparseTier
impl Send for MTLBufferSparseTier
impl Sync for MTLBufferSparseTier
impl Unpin for MTLBufferSparseTier
impl UnwindSafe for MTLBufferSparseTier
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.