convertSparsePixelRegions(_:toTileRegions:withTileSize:alignmentMode:numRegions:)
Converts a list of sparse pixel regions to tile regions.
Declaration
optional func convertSparsePixelRegions(_ pixelRegions: UnsafePointer<MTLRegion>, toTileRegions tileRegions: UnsafeMutablePointer<MTLRegion>, withTileSize tileSize: MTLSize, alignmentMode mode: MTLSparseTextureRegionAlignmentMode, numRegions: Int)Parameters
- pixelRegions:
A pointer to a C array of pixel Mtlregion instances.
- tileRegions:
A pointer to a C array of tile Mtlregion instances.
- tileSize:
An Mtlsize instance that represents a sparse tile’s size, in pixels.
- mode:
An Mtlsparsetextureregionalignmentmode instance.
- numRegions:
The number of regions you want the method to convert.