#[repr(C)]pub struct MTL4UpdateSparseTextureMappingOperation {
pub mode: MTLSparseTextureMappingMode,
pub textureRegion: MTLRegion,
pub textureLevel: NSUInteger,
pub textureSlice: NSUInteger,
pub heapOffset: NSUInteger,
}MTL4CommandQueue and MTLResourceStateCommandEncoder and MTLTypes only.Expand description
Groups together arguments for an operation to update a sparse texture mapping.
When performing a sparse mapping update, you are responsible for issuing a barrier against stage MTLStageResourceState.
You can determine the sparse texture tier by calling MTLTexture/sparseTextureTier.
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 region in X, Y, then Z 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 region, ignoring the contents of member heapOffset.
textureRegion: MTLRegionThe region in the texture to update, in tiles.
When textureLevel is equal to the texture’s MTLTexture/firstMipmapInTail,
set origin.y to 0 and size.height to 1.
textureLevel: NSUIntegerThe index of the mipmap level in the texture to update.
Provide a value between 0 and the texture’s MTLTexture/firstMipmapInTail.
textureSlice: NSUIntegerThe index of the array slice in the texture to update.
Provide 0 in this member if the texture type is not an array.
heapOffset: NSUIntegerThe starting offset in the heap, in tiles.
Trait Implementations§
Source§impl Clone for MTL4UpdateSparseTextureMappingOperation
impl Clone for MTL4UpdateSparseTextureMappingOperation
Source§fn clone(&self) -> MTL4UpdateSparseTextureMappingOperation
fn clone(&self) -> MTL4UpdateSparseTextureMappingOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for MTL4UpdateSparseTextureMappingOperation
impl PartialEq for MTL4UpdateSparseTextureMappingOperation
Source§fn eq(&self, other: &MTL4UpdateSparseTextureMappingOperation) -> bool
fn eq(&self, other: &MTL4UpdateSparseTextureMappingOperation) -> bool
self and other values to be equal, and is used by ==.