1234567891011121314151617181920212223242526272829303132 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <AzCore/base.h>
- #include <AzCore/PlatformIncl.h>
- #include <AzCore/std/algorithm.h>
- #include <limits.h>
- #if defined(PAL_TRAIT_LINUX_WINDOW_MANAGER_XCB)
- #include <xcb/xcb.h> // needed for glad vulkan
- #endif
- #include <glad/vulkan.h>
- // Tell OpenXR what platform code we'll be using
- #if defined(PAL_TRAIT_LINUX_WINDOW_MANAGER_XCB)
- #define XR_USE_PLATFORM_XCB
- #elif defined(PAL_TRAIT_LINUX_WINDOW_MANAGER_WAYLAND)
- #define XR_USE_PLATFORM_WAYLAND
- #else
- #error "Linux Window Manager not recognized."
- #endif
- #define XR_USE_GRAPHICS_API_VULKAN
- #include <openxr/openxr.h>
- #include <openxr/openxr_platform.h>
- #include <openxr/openxr_reflection.h>
|