target

val target: RenderTarget(source)

The exclusively borrowed color target and optional depth attachment.

Access is confined to the render-thread callback; ownership remains with the device through GPU completion. Reading this property does not permit retaining, resizing, or closing the target.

Throws

off the render thread or after the callback returns or fails.