layer(at:)
Returns the layer description for a layer in the rate map.
Declaration
func layer(at layerIndex: Int) -> MTLRasterizationRateLayerDescriptor?Parameters
- layerIndex:
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.
Discussion
Calling this method is equivalent to using array subscript syntax.