Skip to main content

Module headless

Module headless 

Source
Expand description

GPU.2 — headless device + queue for tests and offline tools.

Stands up a wgpu device with no surface — the surface dependency is what couples GpuRenderer to winit. Tests that exercise the decompressed-chunk upload + read-back path want neither a window nor a swapchain; this module exposes that bare device.

Same GpuInitError surface as GpuRenderer::new so callers can share the fall-back-to-CPU pattern.

Structs§

HeadlessGpu
Bare wgpu device + queue with no surface. Suitable for wgpu::ComputePass work that doesn’t present.