Instance Method


Returns the layer description for a layer in the rate map.


func layer(at layerIndex: Int) -> MTLRasterizationRateLayerDescriptor?



The entry to return.

Return Value

The MTLRasterizationRateLayerDescriptor instance for the given index, or nil if you haven't set an instance for this index.


Calling this method is equivalent to using array subscript syntax.

See Also

Configuring the Rate Map Layers

var layerCount: Int

The number of layers in the rate map.

func setLayer(MTLRasterizationRateLayerDescriptor?, at: Int)

Sets a configuration for a layer rate map.

var layers: MTLRasterizationRateLayerArray

The rasterization rates for one or more layers in the rate map.

class MTLRasterizationRateLayerArray

Descriptions for the rasterization rates to apply to the set of layers in a rate map.