Instance Method

setStencilStoreAction(_:)

Specifies the stencil store action for the stencil attachment.

Required.

Declaration

func setStencilStoreAction(_ storeAction: MTLStoreAction)

Parameters

storeAction

The desired store action for the stencil attachment. This value must not be MTLStoreAction.unknown.

Discussion

If the store action for the stencil attachment was set to MTLStoreAction.unknown 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

func setColorStoreAction(MTLStoreAction, index: Int)

Specifies a store action for a color attachment.

Required.

func setColorStoreActionOptions(MTLStoreActionOptions, index: Int)

Specifies store action options for a color attachment.

Required.

func setDepthStoreAction(MTLStoreAction)

Specifies the depth store action for the depth attachment.

Required.

func setDepthStoreActionOptions(MTLStoreActionOptions)

Specifies store action options for the depth attachment.

Required.

func setStencilStoreActionOptions(MTLStoreActionOptions)

Specifies store action options for the stencil attachment.

Required.