copyMappings(sourceTexture:destinationTexture:operations:)
Copies multiple regions within a source placement sparse texture to a destination placement sparse texture.
Declaration
func copyMappings(sourceTexture: any MTLTexture, destinationTexture: any MTLTexture, operations: [MTL4CopySparseTextureMappingOperation])Parameters
- sourceTexture:
The source placement sparse Mtltexture.
- destinationTexture:
The destination placement sparse Mtltexture.
- operations:
An array of Mtl4copysparsetexturemappingoperation instances to perform.
Discussion
You are responsible for ensuring the source and destination textures have the same placementSparsePageSize.
Additionally, you are responsible for ensuring that the source and destination textures don’t use the same aliased tiles at the same time.