NativeCanvasTarget

A version-owned color target and optional depth attachment, exclusively owned by a canvas device.

The producer borrows the target only during its capture callback. Native handles never enter a core draw command or a portable presentation snapshot. All access, including physical destruction, is confined to the owning render thread.

Properties

Link copied to clipboard
abstract val size: IntSize

The immutable positive physical color extent.

Functions

Link copied to clipboard
abstract override fun close()

Requests release of the complete target set after its initialization, capture, and GUI work have completed.

Link copied to clipboard
open fun isDestroyed(): Boolean

Acknowledges physical destruction after close has returned successfully.