Initializer

init(screenSize:label:)

A convenience initializer that creates a rate map descriptor with a given size and identifier.

Declaration

convenience init(screenSize: MTLSize, label: String? = nil)

Parameters

screenSize

The logical size, in pixels, of the viewport coordinate system.

label

A string that identifies the resulting rate map.

Return Value

A descriptor object whose screenSize and label properties are set to the provided values. You must add at least one layer rate map to the descriptor.

See Also

Creating Rate Map Descriptors

init(screenSize: MTLSize, layer: MTLRasterizationRateLayerDescriptor, label: String?)

A convenience initializer that creates a rate map descriptor with a single rate layer.

init(screenSize: MTLSize, layers: [MTLRasterizationRateLayerDescriptor], label: String?)

A convenience initializer that creates a rate map descriptor with a set of layer descriptors.