Open ToddG opened 1 year ago
My Windows 11 machine has backends DX12 and Vulkan, and I found that DX12 works better. So I used DX12 backend to create the instance:
let instance = wgpu::Instance::new(wgpu::Backends::DX12);
In your Linux machine, you may use Vulkan backend instead:
let instance = wgpu::Instance::new(wgpu::Backends::VULKAN);
or just use all() as backend:
let instance = wgpu::Instance::new(wgpu::Backends::all());
don't know if this fixes your problem.
On my linux machine, example wgpu02 lists my adapters an opens a blank window as expected. Here are the adapters it lists:
However, example wgpu03 panics with:
here in the
.request_adapter()
call:Machine
Clearly I have a GPU see specs here. What do I need to do to get the wgpu03 example working?