Instance Property

depthWriteEnabled

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

Declaration

@property(nonatomic, getter=isDepthWriteEnabled) BOOL depthWriteEnabled;

Discussion

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

See Also

Specifying Depth Operations

depthCompareFunction

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.