updateTextureMappings(_:mode:regions:mipLevels:slices:numRegions:)
Encodes a command to update memory mappings for multiple regions inside a texture.
Declaration
func updateTextureMappings(_ texture: any MTLTexture, mode: MTLSparseTextureMappingMode, regions: UnsafePointer<MTLRegion>, mipLevels: UnsafePointer<Int>, slices: UnsafePointer<Int>, numRegions: Int)optional func updateTextureMappings(_ texture: any MTLTexture, mode: MTLSparseTextureMappingMode, regions: UnsafePointer<MTLRegion>, mipLevels: UnsafePointer<Int>, slices: UnsafePointer<Int>, numRegions: Int)Parameters
- texture:
The sparse texture to update.
- mode:
The change to make to the texture mapping.
- regions:
A pointer to an array of regions to change. You need to provide as many regions as you specify in the
numRegionsparameter. - mipLevels:
A pointer to an array of mipmap levels to change. You need to provide as many entries as you specify in the
numRegionsparameter. - slices:
A pointer to an array of slices to change. You need to provide as many entries as you specify in the
numRegionsparameter. - numRegions:
The number of regions to update.