API reference

ENABLE

ENABLE

ENABLE
Enables writing to the depth buffer.
When a fragment passes the depth test, its depth value will be written to the depth buffer, updating the stored depth at that pixel location. This is the standard setting for opaque objects to ensure proper occlusion in 3D scenes.

Properties

NameSummary
encoding
val encoding: Int

Integer value corresponding to the native graphics API encoding for this depth write mode
name
val name: String
ordinal
val ordinal: Int