Skip to main content

shared_gpu

Function shared_gpu 

Source
pub fn shared_gpu() -> &'static SharedGpuContext
Expand description

Process-wide wgpu device + queue (lazy init). Panics if no GPU is available — use only where a device is genuinely mandatory. Prefer try_shared_gpu on any path that can fall back to CPU.