Instance Property

layerCount

The number of layers in the rate map.

Declaration

var layerCount: Int { get }

Discussion

The value of this property is dynamically determined based on how many layers you’ve added to the descriptor. To add a new layer, call setLayer(_:at:) or use the subscripting operator to assign a layer.

See Also

Configuring the Rate Map Layers

func layer(at: Int) -> MTLRasterizationRateLayerDescriptor?

Returns the layer description for a layer 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software