wgpu-openxr-example icon indicating copy to clipboard operation
wgpu-openxr-example copied to clipboard

Unable to load swapchain

Open schell opened this issue 1 year ago • 12 comments

I'm trying to run the example with cargo run -- xr and am getting this error:

PS C:\Users\efsub\source\repos\wgpu-openxr-example> $env:RUST_BACKTRACE=1; cargo run -- xr
    Finished dev [unoptimized + debuginfo] target(s) in 1.32s
     Running `target\debug\wgpu-openxr-example.exe xr`
loaded OpenXR runtime: SteamVR/OpenXR 0.1.0
thread 'main' panicked at 'Unable to load create_swapchain_khr', C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\ash-0.37.0+1.3.209\src\vk\extensions.rs:268:21
stack backtrace:
   0: std::panicking::begin_panic<str>
             at /rustc/897e37553bba8b42751c67658967889d11ecd120\library\std\src\panicking.rs:616
   1: ash::vk::extensions::impl$9::load::create_swapchain_khr
             at C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\ash-0.37.0+1.3.209\src\vk\extensions.rs:268
   2: ash::extensions::khr::swapchain::Swapchain::create_swapchain
             at C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\ash-0.37.0+1.3.209\src\extensions\khr\swapchain.rs:64
   3: wgpu_hal::vulkan::Device::create_swapchain
             at C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-hal-0.13.2\src\vulkan\device.rs:559
   4: wgpu_hal::vulkan::instance::impl$5::configure
             at C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-hal-0.13.2\src\vulkan\instance.rs:737
   5: wgpu_core::hub::Global<wgpu_core::hub::IdentityManagerFactory>::surface_configure<wgpu_core::hub::IdentityManagerFactory,wgpu_hal::vulkan::Api>
             at C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.13.2\src\device\mod.rs:5089
   6: wgpu::backend::direct::impl$3::surface_configure
             at C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.13.1\src\backend\direct.rs:1003
   7: wgpu::Surface::configure
             at C:\Users\efsub\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-0.13.1\src\lib.rs:3576
   8: wgpu_openxr_example::main
             at .\src\main.rs:136
   9: core::ops::function::FnOnce::call_once<enum2$<core::result::Result<tuple$<>,anyhow::Error> > (*)(),tuple$<> >
             at /rustc/897e37553bba8b42751c67658967889d11ecd120\library\core\src\ops\function.rs:248
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\wgpu-openxr-example.exe xr` (exit code: 101)

I have since installed the LunarG Vulkan SDK, installed the latest drivers for my GPU (Nvidia GeForce GTX 1060) and SteamVR is running before I run cargo run -- xr. Are there any other setup steps I'm forgetting?

schell avatar Nov 04 '22 04:11 schell