Type Method

rasterizationRateMapDescriptorWithScreenSize:

Creates a rate map descriptor with a given size and identifier.

Declaration

+ (MTLRasterizationRateMapDescriptor *)rasterizationRateMapDescriptorWithScreenSize:(MTLSize)screenSize;

Parameters

screenSize

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

Return Value

A descriptor object whose screenSize is set to the provided size. You must add at least one layer rate map to the descriptor.

See Also

Creating Rate Map Descriptors

+ rasterizationRateMapDescriptorWithScreenSize:layer:

Creates a rate map descriptor with a single rate layer.

+ rasterizationRateMapDescriptorWithScreenSize:layerCount:layers:

Creates a rate map descriptor with a set of layer descriptors.