Contents

convertSparseTileRegions(_:toPixelRegions:withTileSize:numRegions:)

Converts a list of sparse tile regions to pixel regions.

Declaration

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

Parameters

  • tileRegions:

    A pointer to a C array of tile Mtlregion instances.

  • pixelRegions:

    A pointer to a C array of pixel Mtlregion instances.

  • tileSize:

    An Mtlsize instance that represents a sparse tile’s size, in pixels.

  • numRegions:

    The number of regions you want the method to convert.

See Also

Working with sparse textures