Contents

LowLevelRenderer.RenderState

The per-frame render state passed to the render(using:_:) callback.

Declaration

struct RenderState

Overview

RenderState is non-copyable and non-escapable; it is only valid for the duration of the render(using:_:) callback. Use its methods to encode individual draw calls, or access encoder to issue custom Metal commands between draws.

Topics

Accessing the encoder

Rendering mesh instances

See Also

Rendering a frame