Type Method

rasterizationRateMapDescriptorWithScreenSize:layerCount:layers:

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

Declaration

+ (MTLRasterizationRateMapDescriptor *)rasterizationRateMapDescriptorWithScreenSize:(MTLSize)screenSize layerCount:(NSUInteger)layerCount layers:(MTLRasterizationRateLayerDescriptor *const  _Nonnull *)layers;

Parameters

screenSize

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

layers

An array of rate layer descriptors for the rate map's layers.

Return Value

A descriptor object whose screenSize is set to the provided size and whose rate map layers are set to the array you provided.

See Also

Creating Rate Map Descriptors

+ rasterizationRateMapDescriptorWithScreenSize:

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

+ rasterizationRateMapDescriptorWithScreenSize:layer:

Creates a rate map descriptor with a single rate layer.