Contents

makeMeshInstanceArray(renderTargets:count:)

Creates a fixed-capacity ordered collection of mesh instances for the given render targets.

Declaration

func makeMeshInstanceArray(renderTargets: LowLevelRenderTarget.DescriptorSet, count: Int) throws -> LowLevelMeshInstanceArray

Parameters

  • renderTargets:

    The set of render target descriptors this array must be compatible with.

  • count:

    The maximum number of mesh instance slots to allocate.

Return Value

A newly created LowLevelMeshInstanceArray.

Discussion

Pass the resulting array to setMeshInstances(_:at:) to submit it for rendering.

See Also

Creating meshes