Class

MTLRasterizationRateSampleArray

An array object that contains rasterization rates.

Declaration

class MTLRasterizationRateSampleArray : NSObject

Overview

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.

Topics

Accessing the Array

subscript(Int) -> Float

Retrieves the sample value at the specified index.

Relationships

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.