MTLRasterizationRateMap

Undocumented in source but is binding to Objective-C. You might be able to learn more by searching the web for its name.

Members

Functions

copyParameterDataToBuffer
void copyParameterDataToBuffer(MTLBuffer buffer, NSUInteger offset)

Copies the parameter data into the provided buffer.

device
MTLDevice device()

The device object that created the rate map.

label
NSString label()

A string that identifies the rate map.

layerCount
NSUInteger layerCount()

The number of layers in the rate map.

mapPhysicalToScreenCoordinates
MTLCoordinate2D mapPhysicalToScreenCoordinates(MTLCoordinate2D physicalCoordinates, NSUInteger layerIndex)

Converts a point in physical coordinates inside a layer to its corresponding logical viewport coordinates.

mapScreenToPhysicalCoordinates
MTLCoordinate2D mapScreenToPhysicalCoordinates(MTLCoordinate2D screenCoordinates, NSUInteger layerIndex)

Converts a point in logical viewport coordinates to the corresponding physical coordinates in a render layer.

parameterBufferSizeAndAlign
MTLSizeAndAlign parameterBufferSizeAndAlign()

The size and alignment requirements to contain the coordinate transformation information in this rate map.

physicalGranularity
MTLSize physicalGranularity()

The granularity, in physical pixels, at which the rasterization rate varies.

physicalSizeForLayer
MTLSize physicalSizeForLayer(NSUInteger layerIndex)

Returns the dimensions, in pixels, of the area in the render target affected by the rasterization rate map.

screenSize
MTLSize screenSize()

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

Meta