MTLLoadAction

Types of actions performed for an attachment at the start of a rendering pass.

Values

ValueMeaning
DontCare0

The GPU has permission to discard the existing contents of the attachment at the start of the render pass, replacing them with arbitrary data.

Load1

The GPU preserves the existing contents of the attachment at the start of the render pass.

Clear2

The GPU writes a value to every pixel in the attachment at the start of the render pass.

Meta