Instance Method

setColorStoreAction:atIndex:

Specifies a known store action to replace the initial MTLStoreActionUnknown value specified for a given 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 the given color attachment was set to MTLStoreActionUnknown when the parallel render command encoder was created, 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 known store action options for a given color attachment.

Required.

- setDepthStoreAction:

Specifies a known store action to replace the initial MTLStoreActionUnknown value specified for a given depth attachment.

Required.

- setDepthStoreActionOptions:

Specifies known store action options for a given depth attachment.

Required.

- setStencilStoreAction:

Specifies a known store action to replace the initial MTLStoreActionUnknown value specified for a given stencil attachment.

Required.

- setStencilStoreActionOptions:

Specifies known store action options for a given stencil attachment.

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software