Instance Method

setLayer:atIndex:

Sets a configuration for a layer rate map.

Declaration

- (void)setLayer:(MTLRasterizationRateLayerDescriptor *)layer atIndex:(NSUInteger)layerIndex;

Parameters

layer

A description of a layer to add to the rate map descriptor. Use nil to remove the layer at that index.

atIndex

The index to put the new layer description in.

Discussion

Calling this method is equivalent to using array subscript syntax.

See Also

Configuring the Rate Map Layers

layerCount

The number of layers in the rate map.

- layerAtIndex:

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