Instance Method

convertSparseTileRegions(_:toPixelRegions:withTileSize:numRegions:)

Converts a list of regions, specified in sparse tile coordinates, to pixel units.

Declaration

optional func convertSparseTileRegions(_ tileRegions: UnsafePointer<MTLRegion>, toPixelRegions pixelRegions: UnsafeMutablePointer<MTLRegion>, withTileSize tileSize: MTLSize, numRegions: Int)

Parameters

tileRegions

An array of sparse tile regions to convert.

pixelRegions

The location to write the results to.

tileSize

The size, in pixels, of a sparse tile.

numRegions

The number of regions to convert.

See Also

Converting Between Pixel Regions and Sparse Tile Regions

enum MTLSparseTextureRegionAlignmentMode

Options used when converting between a pixel-based region within a texture to a tile-based region.