xrt: Fix graphics includes in xrt_openxr_includes

This commit is contained in:
Simon Zeni 2023-11-17 22:37:54 -05:00 committed by Jakob Bornecrantz
parent 843cf98aeb
commit afb12a4c5d

View file

@ -37,11 +37,22 @@ typedef void (*__eglMustCastToProperFunctionPointerType)(void); // NOLINT
typedef __eglMustCastToProperFunctionPointerType (*PFNEGLGETPROCADDRESSPROC)(const char *procname);
#endif
#if defined(XR_USE_GRAPHICS_API_D3D11)
#if defined(XR_USE_PLATFORM_WIN32)
#include "xrt_windows.h"
#endif
#if defined(XR_USE_GRAPHICS_API_D3D11)
#include <d3d11.h>
#endif
#if defined(XR_USE_GRAPHICS_API_D3D12)
#include <d3d12.h>
#endif
#if defined(XR_USE_GRAPHICS_API_VULKAN)
#include "xrt_vulkan_includes.h"
#endif
#ifdef XR_USE_TIMESPEC
#include <time.h>
#endif