Expand description
P1-26: GPU capability detection.
Detects GPU vendor and capabilities at startup. Used by the renderer to log GPU info and (in future) select shader variants appropriate for the available hardware.
Structs§
- GpuCapabilities
- GPU capability summary. Currently just includes the vendor; future versions will add feature flags (e.g., bindless textures, advanced compute features).
Enums§
- GpuVendor
- Detected GPU vendor. This is a coarse classification derived from the adapter name string. It’s used to enable vendor-specific workarounds in shaders or pipeline creation.
Functions§
- detect_
gpu_ vendor - Detect GPU vendor from an adapter name string. The name
comes from
wgpu::Adapter::get_info().name.