sparseTileSize(textureType:pixelFormat:sampleCount:sparsePageSize:)
Returns the dimensions of a sparse tile for a texture that has a specific sparse page size.
Declaration
func sparseTileSize(textureType: MTLTextureType, pixelFormat: MTLPixelFormat, sampleCount: Int, sparsePageSize: MTLSparsePageSize) -> MTLSizeParameters
- textureType:
An Mtltexturetype instance.
- pixelFormat:
An Mtlpixelformat instance.
- sampleCount:
The number of samples for each pixel.
- sparsePageSize:
An Mtlsparsepagesize instance.
Return Value
A new MTLSize instance.
See Also
Working with sparse textures
sparseTileSize(with:pixelFormat:sampleCount:)sparseTileSizeInBytes(sparsePageSize:)sparseTileSizeInBytesconvertSparsePixelRegions(_:toTileRegions:withTileSize:alignmentMode:numRegions:)convertSparseTileRegions(_:toPixelRegions:withTileSize:numRegions:)MTLSparsePageSizeMTLSparseTextureRegionAlignmentMode