#[repr(transparent)]pub struct MTLTextureSparseTier(pub NSInteger);Available on crate feature
MTLResource only.Expand description
Enumerates the different support levels for sparse textures.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl MTLTextureSparseTier
impl MTLTextureSparseTier
Sourcepub const Tier1: Self
pub const Tier1: Self
Indicates support for sparse textures tier 1.
Tier 1 sparse textures allow the following:
- Partial memory backing at sparse tile granularity.
- Defined behavior for accessing an unbacked texture region.
- Shader feedback on texture access to determine memory backing.
An unbacked texture region indicates a region within the texture that doesn’t have memory backing at a given point in time. Accessing an unbacked texture region produces the following results:
- Reading returns zero (transparent black) for pixel formats with an alpha (A) channel.
- Reading return zero in RGB and one in alpha (A) channels (opaque black) otherwise.
- Writing produces no result.
Trait Implementations§
Source§impl Clone for MTLTextureSparseTier
impl Clone for MTLTextureSparseTier
Source§fn clone(&self) -> MTLTextureSparseTier
fn clone(&self) -> MTLTextureSparseTier
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 MTLTextureSparseTier
impl Debug for MTLTextureSparseTier
Source§impl Encode for MTLTextureSparseTier
impl Encode for MTLTextureSparseTier
Source§impl Hash for MTLTextureSparseTier
impl Hash for MTLTextureSparseTier
Source§impl Ord for MTLTextureSparseTier
impl Ord for MTLTextureSparseTier
Source§fn cmp(&self, other: &MTLTextureSparseTier) -> Ordering
fn cmp(&self, other: &MTLTextureSparseTier) -> 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 MTLTextureSparseTier
impl PartialEq for MTLTextureSparseTier
Source§impl PartialOrd for MTLTextureSparseTier
impl PartialOrd for MTLTextureSparseTier
Source§impl RefEncode for MTLTextureSparseTier
impl RefEncode for MTLTextureSparseTier
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 MTLTextureSparseTier
impl Eq for MTLTextureSparseTier
impl StructuralPartialEq for MTLTextureSparseTier
Auto Trait Implementations§
impl Freeze for MTLTextureSparseTier
impl RefUnwindSafe for MTLTextureSparseTier
impl Send for MTLTextureSparseTier
impl Sync for MTLTextureSparseTier
impl Unpin for MTLTextureSparseTier
impl UnwindSafe for MTLTextureSparseTier
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.