Instance Method

setColorStoreAction:atIndex:

Specifies a store action for a color attachment.

Required.

Declaration

- (void)setColorStoreAction:(MTLStoreAction)storeAction atIndex:(NSUInteger)colorAttachmentIndex;

Parameters

storeAction

The desired store action for the color attachment. This value must not be MTLStoreActionUnknown.

colorAttachmentIndex

The index of the color attachment.

Discussion

If the store action for a color attachment was set to MTLStoreActionUnknown in the render pass descriptor used to create this render command encoder, you must call this method to specify another store action before you call the endEncoding method.

See Also

Setting Render Pass State

- setColorStoreActionOptions:atIndex:

Specifies store action options for a color attachment.

Required.

- setDepthStoreAction:

Specifies the depth store action for the depth attachment.

Required.

- setDepthStoreActionOptions:

Specifies store action options for the depth attachment.

Required.

- setStencilStoreAction:

Specifies the stencil store action for the stencil attachment.

Required.

- setStencilStoreActionOptions:

Specifies store action options for the stencil attachment.

Required.