Initializer

init(sampleCount:)

Initializes the layer map with an empty grid.

Declaration

init(sampleCount: MTLSize)

Parameters

sampleCount

The size of the grid. Specify the width and height to determine the number of columns and rows in the layer map. The depth component is ignored.

Return Value

A layer descriptor with a grid of the specified size. All of the rasterization rates are set to 0.0.

See Also

Creating a Layer Rasterization Rate Descriptor

init(horizontal: [Float], vertical: [Float])

Initializes a layer rate map with a set of horizontal and vertical rasterization rates.