Contents

LowLevelMeshInstance

A single drawable object pairing a mesh part with a compiled pipeline state, optional per-draw argument tables, a transform, and a sort category.

Declaration

final class LowLevelMeshInstance

Overview

Transform, bounds, and sort category can be updated after creation; the renderer picks up changes automatically before the next render(using:_:) call.

To draw multiple copies of the mesh in a single draw call, assign a LowLevelInstanceTransformResource via setInstanceTransforms(_:).

Topics

Configuring the geometry and pipeline

Positioning instances

Providing shader arguments

Sorting instances

Instance Properties

See Also

GPU resources