An array object that contains rasterization rates.


class MTLRasterizationRateSampleArray : NSObject


The horizontal and vertical properties of a MTLRasterizationRateLayerDescriptor point to MTLRasterizationRateSampleArray objects containing rasterization rates for the layer map. You can use array subscript syntax to access the samples. MTLRasterizationRateSampleArray objects perform bounds checking on any accesses you make to their sample data.


Accessing the Array

subscript(Int) -> Float

Retrieves the sample value at the specified index.


Inherits From

Conforms To

See Also

Inspecting the Layer Rate Function Parameters

var sampleCount: MTLSize

The number of rows and columns in the layer map.

var horizontal: MTLRasterizationRateSampleArray

The horizontal rasterization rates for the layer map’s rows.

var vertical: MTLRasterizationRateSampleArray

The vertical rasterization rates for the layer map’s rows.