A Boolean value that indicates whether depth values can be written to the depth attachment.
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The default value is
NO, which indicates the depth attachment is read-only.
Specifying Depth Operations
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.