Skip to main content

Module context

Module context 

Source
Expand description

wgpu device/surface ownership. All raw GPU access lives behind this layer (ADR-0001): scene code sees wgpu types, never a backend.

Structs§

AdapterDescription
One enumerated adapter: the name a caller matches against, and the full description a caller prints.
RenderContext
Owns the wgpu instance, surface, device, and queue for one output window.

Enums§

AdapterChoice
Which graphics adapter a headless context should render on.
RenderError
Something went wrong bringing up or drawing with the GPU context.

Functions§

list_adapters
Every graphics adapter wgpu enumerates on this machine, in wgpu’s order.