source
fun source(producerFactory: () -> NativeCanvasProducer, depth: Boolean = false): CanvasSource(source)
Creates an externally reusable description without opening a renderer or allocating a target.
Each node opens an independent producer; the description never owns or closes the external source.
Return
immutable source description whose bindings belong to this device.
Parameters
producerFactory
owner-thread factory called once per attachment or resource-reload generation; it must issue no GPU work and defer renderer initialization to the capture's render callback.
depth
whether every target created for this source needs a depth attachment.
Throws
when called off the device thread or after shutdown.