Expand description
GPU device abstraction and initialization. GPU device abstraction and initialization.
Structs§
- Adapter
Criteria - Criteria used by
select_adapter. - Adapter
Probe Report - Human-readable adapter probe details for GPU acquisition failures.
- Enabled
Features - Snapshot of features that were actually enabled when the cached
device was created. Consumed by
WgpuBackend::supports_*methods so the VyreBackend capability reports are honest - a feature bit is reported only if it was both advertised by the adapter AND requested at device creation.
Functions§
- acquire_
gpu - Asynchronously initialize a new GPU device and queue.
- acquire_
gpu_ for_ adapter - Async variant of
init_device_for_adapter. - adapter_
for_ info - Re-open the live wgpu adapter matching a previously selected adapter info.
- adapter_
index_ from_ env - Read the
VYRE_ADAPTER_INDEXenv override.Nonewhen unset. - adapter_
probe_ report - Build the centralized adapter diagnostic report used by acquisition errors.
- cached_
adapter_ info - Acquire adapter info for the singleton runtime device.
- cached_
device - Acquire the singleton device/queue pair.
- enumerate_
adapters - List every adapter the wgpu instance reports.
- has_
real_ gpu_ adapter - Report whether the centralized adapter probe can see at least one real GPU.
- init_
device - Initialize a new GPU device and queue.
- init_
device_ for_ adapter - Initialize a device + queue bound to the adapter at
index. - select_
adapter - Select the first adapter matching
criteria. Returns its index intoenumerate_adaptersplus its info.