Skip to content
Open-Source OpenXR C++ language projection
C++ Python CMake Shell C Batchfile
Branch: master
Clone or download
rpavlik Merge pull request #10 from jherico/fix/flag_or
Support FlagBit|FlagBit and ~FlagBit
Latest commit 6036936 Nov 4, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake Add xr::Version unit test Oct 9, 2019
include Make deps comprehensive for build. Sep 24, 2019
maintainer-scripts maintainer-scripts: ship github sdk dir Aug 26, 2019
scripts Merge pull request #10 from jherico/fix/flag_or Nov 4, 2019
tests add flags test Oct 9, 2019
.editorconfig Change log for OpenXR 0.90.1 provisional spec update (8-May-2019) May 9, 2019
.gitattributes Upload release 1.0.0 of OpenXR loader, layers, and samples Jul 29, 2019
.gitignore Upload release 1.0.0 of OpenXR loader, layers, and samples Jul 29, 2019
CMakeLists.txt Add xr::Version unit test Oct 9, 2019
Doxyfile Improve docs Sep 12, 2019
LICENSE Initial code snapshot copied from Gitlab repo Mar 18, 2019 Add openxr-hpp usage document based on vulkan-hpp readme Sep 24, 2019 modify ancillary files. Sep 23, 2019
generate-openxr-hpp.bat Add a windows batch file for generating the header Oct 9, 2019 wip Sep 23, 2019
tox.ini OpenXR 1.0.1 release (2-August-2019) Aug 3, 2019

OpenXR-HPP project

This repository contains build scripts and test files for the openxr.hpp header, providing a C++-friendly projection of the OpenXR API.

The authoritative public repository is located at It hosts the public Issue tracker, and accepts patches (Pull Requests) from the general public.

If you want to simply write an application using OpenXR (the headers and loader), with minimum dependencies, see That project will likely contain the openxr.hpp artifact when it is ready for widespread production usage.

To build this project, you must have OpenXR-SDK-Source cloned in a peer directory of this one.

Directory Structure

  • - This file
  • - Copyright and licensing information
  • - Code of Conduct
  • include/ - Build system to generate the openxr.hpp file
  • specification/ - xr.xml file
  • scripts/ - Source code for various projects
  • tests/ - some simple files that ensures the header is always compilable.


If you just want to generate the header, run ./ If your OpenXR-SDK-Source (or internal gitlab) repo isn't in a directory named that parallel to this one, you can set OPENXR_REPO environment variable before running. Requires clang-format, preferably 6.0.

If you'd like to build the tests (making sure the header can compile), use CMake to generate a build system, like:

mkdir build
cd build
cmake ..
You can’t perform that action at this time.