-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load swapchain #9
Comments
Hmm, do you have more than one GPU (i.e. integrated graphics) in your machine, and does If it works in |
It works in desktop mode! Could it be that SteamVR (which is providing the OpenXR runtime) is using D3D and can't interop with Vulkan? |
In the SteamVR web console I do see it setting up D3D11 textures:
|
This is the full SteamVr log while running
|
After enabling logging I can see that there is an available extension in
|
Hm, that might be the key! Try enabling it by adding it to the array here: I'm guessing that the Vulkan device created for me includes the swapchain extension as a required extension, but yours doesn't. If that's the issue, then requesting it explicitly should fix it. |
I've added it to #10 and now I'm seeing:
|
I downloaded a release of the openxr sdk here, which includes the "helloxr" app. I ran it with |
I've added a few more logs to #10 but still haven't been able to figure it out. OpenXR is erring with |
Hmm... this is so strange. Are you sure it's running on the correct device? What does your system configuration look like? |
Windows stuff
GPU stuff
Steam / VR stuff
I'm not sure how to find out if it's selecting the correct device, I just assumed that OpenXR and SteamVR would work that out! Please let me know if there are some steps or info I'm missing. I'm new to developing on Windows, so I'm not confident in what is relevant. |
Sorry, I've had a busy week! I don't see anything immediately strange there, but my current running theory is that Direct Mode (as used by your headset) produces a different Vulkan device as to what's used to render your desktop / windows. Can you try disabling the swapchain extension and removing all of the windowing logic (you should be able to replace the winit loop with a That might even clean up the initialisation logic - there can now be an unconditional creation of the WGPU state with |
I'm trying to run the example with
cargo run -- xr
and am getting this error: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?The text was updated successfully, but these errors were encountered: