target

val target: RenderTarget(source)

The borrowed color target with an 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 renderer callback returns or fails.