Instance Property

layerCount

The number of layers in the rate map.

Declaration

@property(nonatomic, readonly) NSUInteger layerCount;

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:atIndex: or use the subscripting operator to assign a layer.

See Also

Configuring the Rate Map Layers

- layerAtIndex:

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

- setLayer:atIndex:

Sets a configuration for a layer rate map.

layers

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

MTLRasterizationRateLayerArray

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