Structure

MTLVertexAmplificationViewMapping

An offset applied to a render target index and viewport index.

Declaration

struct MTLVertexAmplificationViewMapping

Topics

Creating a View Mapping

init()

Initializes a default view mapping.

Specifying Mapping Offsets

var renderTargetArrayIndexOffset: UInt32

An offset into the list of render targets.

var viewportArrayIndexOffset: UInt32

An offset into the list of viewports.

See Also

Configuring Vertex Amplification

func setVertexAmplificationCount(Int, viewMappings: UnsafePointer<MTLVertexAmplificationViewMapping>?)

Sets the number of output vertices for each input vertex, along with offsets into the layer and viewport lists.

Required.