Type Method

rasterizationRateMapDescriptorWithScreenSize:layer:

Creates a rate map descriptor with a single rate layer.

Declaration

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

Parameters

screenSize

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

layer

A descriptor for the rate layer to create.

Return Value

A descriptor object whose screenSize is set to the provided size. Layer 0 in the rate map is set to the provided layer descriptor.

See Also

Creating Rate Map Descriptors

+ rasterizationRateMapDescriptorWithScreenSize:

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

+ rasterizationRateMapDescriptorWithScreenSize:layerCount:layers:

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