Contents

setStencilStoreAction(_:)

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

Declaration

func setStencilStoreAction(_ storeAction: MTLStoreAction)

Parameters

  • storeAction:

    The desired store action for the stencil attachment. This value can’t be Unknown.

Discussion

If the store action for the given stencil attachment was set to MTLStoreAction.unknown when the parallel render command encoder was created, you need to call this method to specify another store action before you call the endEncoding() method.

See Also

Setting render pass state