Enumeration

MTLSparseTextureRegionAlignmentMode

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

Declaration

typedef enum MTLSparseTextureRegionAlignmentMode : NSUInteger {
    ...
} MTLSparseTextureRegionAlignmentMode;

Topics

Specifying the Alignment Mode

MTLSparseTextureRegionAlignmentModeOutward

The tile region includes any partially covered tiles.

MTLSparseTextureRegionAlignmentModeInward

The tile region ignores partially covered tiles.

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.

- convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:

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