DepthBuffer

Represents a depth buffer used for rendering operations. A depth buffer stores depth information for rendered pixels, enabling depth testing in graphics applications. It may optionally include stencil information based on its format.

The depth buffer is associated with a specific Session, which manages its lifecycle. It has a defined width, height, format, and multisample configuration.

Properties

Link copied to clipboard
abstract val format: DepthFormat
Link copied to clipboard
open val hasDepth: Boolean
Link copied to clipboard

Indicates whether the depth buffer includes a stencil component based on its format. If true, the buffer supports stencil operations.

Link copied to clipboard
abstract val height: Int
Link copied to clipboard
Link copied to clipboard
abstract val session: Session?
Link copied to clipboard
abstract val width: Int

Functions

Link copied to clipboard
abstract fun bind(textureUnit: Int)
Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun copyTo(target: DepthBuffer)
Link copied to clipboard
abstract fun destroy()
Link copied to clipboard
abstract fun resolveTo(target: DepthBuffer)