Просмотр исходного кода

Merge pull request #27 from aws-lumberyard-dev/openxr/amzn-phist/MiscFixes

OpenXR Misc header fixes
amzn-phist 3 лет назад
Родитель
Сommit
b63617b7aa

+ 1 - 0
Gems/OpenXRVk/Code/Include/OpenXRVk/OpenXRVkInput.h

@@ -9,6 +9,7 @@
 #pragma once
 
 #include <XR/XRInput.h>
+#include <OpenXRVk/OpenXRVkSpace.h>
 #include <OpenXRVk_Platform.h>
 
 namespace OpenXRVk

+ 3 - 4
Gems/OpenXRVk/Code/Include/OpenXRVk/OpenXRVkUtils.h

@@ -8,7 +8,6 @@
 
 #pragma once
 
-#include <Atom/RHI.Reflect/Base.h>
 #include <OpenXRVk_Platform.h>
 #include <XR/XRBase.h>
 
@@ -42,7 +41,7 @@ namespace OpenXRVk
     if (result != XR_SUCCESS) {\
         return;\
     }
-    
+
 #define WARN_IF_UNSUCCESSFUL(result) \
     if (result != XR_SUCCESS) {\
         AZ_Warning("OpenXRVk", false, "Warning error code: %s", to_string(result));\
@@ -59,8 +58,8 @@ namespace OpenXRVk
     const char* GetResultString(const XrResult result);
     XR::RawStringList FilterList(const XR::RawStringList& source, const XR::StringList& filter);
 
-    //! Input is an array of chars with multiple ' ' char embedded in it, indicating the start of a new string. 
-    //! Iterate through the characters while caching the starting pointer to a string 
+    //! Input is an array of chars with multiple ' ' char embedded in it, indicating the start of a new string.
+    //! Iterate through the characters while caching the starting pointer to a string
     //! and every time ' ' is encountered replace it with '\0' to indicate the end of a string.
     AZStd::vector<const char*> ParseExtensionString(char* names);
 }

+ 1 - 0
Gems/OpenXRVk/Code/Source/OpenXRVkSwapChain.cpp

@@ -11,6 +11,7 @@
 #include <AzCore/Casting/numeric_cast.h>
 #include <AzCore/std/containers/set.h>
 #include <AzCore/std/containers/vector.h>
+#include <OpenXRVk/OpenXRVkDevice.h>
 #include <OpenXRVk/OpenXRVkInstance.h>
 #include <OpenXRVk/OpenXRVkSession.h>
 #include <OpenXRVk/OpenXRVkSwapChain.h>

+ 1 - 0
Gems/XR/Code/Include/XR/XRBase.h

@@ -11,6 +11,7 @@
 #include <AzCore/std/smart_ptr/intrusive_ptr.h>
 #include <AzCore/std/string/string.h>
 #include <AzCore/std/containers/vector.h>
+#include <Atom/RHI.Reflect/Base.h>      // For AZ::RHI::ResultCode
 
 namespace XR
 {