fix: adapt GPU enumeration to local wgpu
This commit is contained in:
parent
7bf97264ab
commit
5a522610f1
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ impl Info {
|
||||||
|
|
||||||
// Use wgpu to enumerate GPUs. Works cross-platform and doesn't require external tools
|
// Use wgpu to enumerate GPUs. Works cross-platform and doesn't require external tools
|
||||||
let instance = wgpu::Instance::default();
|
let instance = wgpu::Instance::default();
|
||||||
let adapters = instance.enumerate_adapters(wgpu::Backends::all()).await;
|
let adapters = instance.enumerate_adapters(wgpu::Backends::all());
|
||||||
|
|
||||||
// Track seen GPUs by (vendor, device) and by name to handle different scenarios:
|
// Track seen GPUs by (vendor, device) and by name to handle different scenarios:
|
||||||
// - Same GPU via different backends (Vulkan/OpenGL) -> deduplicate by device ID or name
|
// - Same GPU via different backends (Vulkan/OpenGL) -> deduplicate by device ID or name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue