setColorStoreAction(_:index:)
Configures the store action for a color attachment.
Declaration
func setColorStoreAction(_ storeAction: MTLStoreAction, index colorAttachmentIndex: Int)Parameters
- storeAction:
A store action for the color attachment that can’t be Unknown.
- colorAttachmentIndex:
The index of a color attachment.
Discussion
This method changes the render command encoder’s store action for a color attachment. You can assign the default store action for a color attachment by configuring the storeAction property of its MTLRenderPassColorAttachmentDescriptor (see MTLRenderPassDescriptor and its colorAttachments property).