#[repr(C)]pub struct MTL4UpdateSparseBufferMappingOperation {
pub mode: MTLSparseTextureMappingMode,
pub bufferRange: NSRange,
pub heapOffset: NSUInteger,
}Available on crate features
MTL4CommandQueue and MTLResourceStateCommandEncoder only.Expand description
Groups together arguments for an operation to update a sparse buffer mapping.
See also Apple’s documentation
Fields§
§mode: MTLSparseTextureMappingModeThe mode of the mapping operation to perform.
When mode is MTLSparseTextureMappingMode/MTLSparseTextureMappingModeMap,
Metal walks the tiles in the range in buffer offset order, assigning the
next tile from the heap in increasing order, starting at heapOffset.
When mode is MTLSparseTextureMappingMode/MTLSparseTextureMappingModeUnmap,
Metal unmaps the tiles in the range, and ignores the value of member heapOffset.
bufferRange: NSRangeThe range in the buffer, in tiles.
heapOffset: NSUIntegerThe starting offset in the heap, in tiles.
Trait Implementations§
Source§impl Clone for MTL4UpdateSparseBufferMappingOperation
impl Clone for MTL4UpdateSparseBufferMappingOperation
Source§fn clone(&self) -> MTL4UpdateSparseBufferMappingOperation
fn clone(&self) -> MTL4UpdateSparseBufferMappingOperation
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 PartialEq for MTL4UpdateSparseBufferMappingOperation
impl PartialEq for MTL4UpdateSparseBufferMappingOperation
Source§fn eq(&self, other: &MTL4UpdateSparseBufferMappingOperation) -> bool
fn eq(&self, other: &MTL4UpdateSparseBufferMappingOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for MTL4UpdateSparseBufferMappingOperation
impl RefEncode for MTL4UpdateSparseBufferMappingOperation
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 MTL4UpdateSparseBufferMappingOperation
impl StructuralPartialEq for MTL4UpdateSparseBufferMappingOperation
Auto Trait Implementations§
impl Freeze for MTL4UpdateSparseBufferMappingOperation
impl RefUnwindSafe for MTL4UpdateSparseBufferMappingOperation
impl Send for MTL4UpdateSparseBufferMappingOperation
impl Sync for MTL4UpdateSparseBufferMappingOperation
impl Unpin for MTL4UpdateSparseBufferMappingOperation
impl UnwindSafe for MTL4UpdateSparseBufferMappingOperation
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.