Instance Property

isDepthWriteEnabled

A Boolean value that indicates whether depth values can be written to the depth attachment.

Declaration

var isDepthWriteEnabled: Bool { get set }

Discussion

The default value is false, which indicates the depth attachment is read-only.

See Also

Specifying Depth Operations

var depthCompareFunction: MTLCompareFunction

The comparison that is performed between a fragment’s depth value and the depth value in the attachment, which determines whether to discard the fragment.

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