#[repr(C)]pub struct MTL4CopySparseTextureMappingOperation {
pub sourceRegion: MTLRegion,
pub sourceLevel: NSUInteger,
pub sourceSlice: NSUInteger,
pub destinationOrigin: MTLOrigin,
pub destinationLevel: NSUInteger,
pub destinationSlice: NSUInteger,
}MTL4CommandQueue and MTLTypes only.Expand description
Groups together arguments for an operation to copy a sparse texture mapping.
See also Apple’s documentation
Fields§
§sourceRegion: MTLRegionThe region in the source texture, in tiles.
The tiles remain mapped in the source texture.
When sourceLevel is equal to the source texture’s MTLTexture/firstMipmapInTail,
set origin.y to 0 and size.height to 1.
sourceLevel: NSUIntegerThe index of the mipmap level in the source texture.
Provide a value between 0 and the source texture’s MTLTexture/firstMipmapInTail.
When sourceLevel is equal to the source texture’s MTLTexture/firstMipmapInTail,
set destinationLevel to the destination texture’s MTLTexture/firstMipmapInTail.
sourceSlice: NSUIntegerThe index of the array slice in the texture source of the copy operation.
Provide 0 in this member if the texture type is not an array.
destinationOrigin: MTLOriginThe origin in the destination texture to copy into, in tiles.
The X, Y and Z coordinates of the tiles relative to the origin match the same coordinates in the source region.
When destinationLevel is equal to the destination texture’s MTLTexture/firstMipmapInTail,
set destinationOrigin.y to 0.
destinationLevel: NSUIntegerThe index of the mipmap level in the destination texture.
Provide a value between 0 and the destination texture’s MTLTexture/firstMipmapInTail.
When sourceLevel is equal to the source texture’s MTLTexture/firstMipmapInTail,
set destinationLevel to the destination texture’s MTLTexture/firstMipmapInTail.
destinationSlice: NSUIntegerThe index of the array slice in the destination texture to copy into.
Provide 0 in this member if the texture type is not an array.
Trait Implementations§
Source§impl Clone for MTL4CopySparseTextureMappingOperation
impl Clone for MTL4CopySparseTextureMappingOperation
Source§fn clone(&self) -> MTL4CopySparseTextureMappingOperation
fn clone(&self) -> MTL4CopySparseTextureMappingOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for MTL4CopySparseTextureMappingOperation
impl PartialEq for MTL4CopySparseTextureMappingOperation
Source§fn eq(&self, other: &MTL4CopySparseTextureMappingOperation) -> bool
fn eq(&self, other: &MTL4CopySparseTextureMappingOperation) -> bool
self and other values to be equal, and is used by ==.