Contents

setDepthStoreAction(_:)

Configures the store action for the depth attachment.

Declaration

func setDepthStoreAction(_ storeAction: MTLStoreAction)

Parameters

  • storeAction:

    A store action for the depth attachment that can’t be Unknown.

Discussion

This method changes the render command encoder’s store action for the depth attachment. You can assign the default store action for the depth attachment by configuring the storeAction property of its MTLRenderPassDepthAttachmentDescriptor (see MTLRenderPassDescriptor and its depthAttachment property).

See Also

Configuring the actions for attachments