Skip to main content

Module device

Module device 

Source
Expand description

GPU device abstraction and initialization. GPU device abstraction and initialization.

Structs§

AdapterCriteria
Criteria used by select_adapter.
AdapterProbeReport
Human-readable adapter probe details for GPU acquisition failures.
EnabledFeatures
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_INDEX env override. None when 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 into enumerate_adapters plus its info.