Instance Method

convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:

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

Declaration

- (void)convertSparseTileRegions:(const MTLRegion *)tileRegions toPixelRegions:(MTLRegion *)pixelRegions withTileSize:(MTLSize)tileSize numRegions:(NSUInteger)numRegions;

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

- convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:

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

MTLSparseTextureRegionAlignmentMode

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