Contents

setMeshInstance(_:index:)

Assigns a mesh instance to the slot at the given index, or clears the slot if the instance is nil.

Declaration

final func setMeshInstance(_ newElement: LowLevelMeshInstanceArray.Element, index: Int) throws(LowLevelRenderContextError)

Parameters

  • newElement:

    The mesh instance to assign, or nil to clear the slot.

  • index:

    The slot index to assign to.

Discussion

You are responsible for ensuring index is within 0..<count.

See Also

Setting mesh instances