You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the blog post you mentioned, that it is possible to use OpenGL with OpenXR. Is it actually possible on Windows? The runtime seems only be supporting DX...
The text was updated successfully, but these errors were encountered:
That's right! The implementation here is DirectX specific, but that's largely because it's the graphics API I'm good at, and my focus is on HoloLens which is DX only!
There's a few spots you'll need to make changes:
First one is a define up at the top! This activates code in openxr_platform.h:
#define XR_USE_GRAPHICS_API_D3D11
You can see some of the other defines on the spec here, you're probably looking for XR_USE_GRAPHICS_API_OPENGL!
xrCreateInstance activates extensions, so you'll need to ensure you've got the correct graphics API extension in that list! You can see here I'm using XR_KHR_D3D11_ENABLE_EXTENSION_NAME
This is listed in the spec as a string, the openGL one is here, but you can also find the corresponding #define, XR_KHR_OPENGL_ENABLE_EXTENSION_NAME listed in openxr_platform.h!
The rest is going to be swapchain work! OpenXR takes your swapchain and displays it, so swapchain creation and display is a little dance done between the graphics API and OpenXR. This part is likely going to be the most tricky part, but I'm not up on OpenGL, so I can't give you much in the way of pointers here =/
Hi!
In the blog post you mentioned, that it is possible to use OpenGL with OpenXR. Is it actually possible on Windows? The runtime seems only be supporting DX...
The text was updated successfully, but these errors were encountered: