philpax / wgpu-openxr-example

a barebones example of how to integrate OpenXR with wgpu (Vulkan-only)
MIT License
49 stars 9 forks source link
openxr vulkan wgpu

wgpu-openxr-example

a barebones example of how to integrate OpenXR with wgpu (Vulkan-only)

It has four modes:

These modes are intended to show you how to gracefully integrate XR into your project's code and how you can move from one stage of integration to the next.

Note that this code is not production-quality; there are a few shortcuts that have been taken in the interest of keeping it simple and relatively modular. Make sure to clean up your resources properly and use robust code where possible :)

Rendering flow

The code renders three instances of a triangle (two being the controllers) to a multi-view render target.

Rendering to a render target is necessary to accommodate these:

Future

It should theoretically be possible to do the following:

Reference

Cobbled together from the following sources: