MTLStoreAction

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

Values

ValueMeaning
DontCare0

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

Store1

The GPU stores the rendered contents to the texture.

MultisampleResolve2

The GPU resolves the multisampled data to one sample per pixel and stores the data to the resolve texture, discarding the multisample data afterwards.

StoreAndMultisampleResolve3

The GPU stores the multisample data to the multisample texture, resolves the data to a sample per pixel, and stores the data to the resolve texture.

Unknown4

The app will specify the store action when it encodes the render pass.

CustomSampleDepthStore

The GPU stores depth data in a sample-position–agnostic representation.

Meta