Contents

setVertexAmplificationCount(_:viewMappings:)

Configures the number of output vertices the render pipeline produces for each input vertex, optionally with render target and viewport offsets.

Declaration

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

Parameters

  • count:

    The number of outputs to create.

  • viewMappings:

    An optional pointer to a C array that has at least count Mtlvertexamplificationviewmapping elements. Each element in the array provides per-output offsets to a specific render target and viewport.

Mentioned in

Discussion

With vertex amplification, you can encode drawing commands that process the same vertex multiple times, one per render target. You can configure the render pipeline’s vertex amplification multiplier by calling this method with a count argument that’s greater than 1.

For more information about vertex amplification and how to use the viewMappings parameter, see Improving rendering performance with vertex amplification.