Skip to main content

set_shared_device

Function set_shared_device 

Source
pub fn set_shared_device(device: Device, queue: Queue)
Expand description

Publish live Device/Queue for shared offscreen.

WASM: thread_local, so a worker thread never sees the main-thread device. Do NOT send the Device/Queue to a worker and render there..