Skip to content

Commit

Permalink
Merge pull request #27 from aws-lumberyard-dev/openxr/amzn-phist/Misc…
Browse files Browse the repository at this point in the history
…Fixes

OpenXR Misc header fixes
  • Loading branch information
amzn-phist authored Sep 9, 2022
2 parents cb5343d + 5253aba commit b63617b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gems/OpenXRVk/Code/Include/OpenXRVk/OpenXRVkInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#pragma once

#include <XR/XRInput.h>
#include <OpenXRVk/OpenXRVkSpace.h>
#include <OpenXRVk_Platform.h>

namespace OpenXRVk
Expand Down
7 changes: 3 additions & 4 deletions Gems/OpenXRVk/Code/Include/OpenXRVk/OpenXRVkUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#pragma once

#include <Atom/RHI.Reflect/Base.h>
#include <OpenXRVk_Platform.h>
#include <XR/XRBase.h>

Expand Down Expand Up @@ -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));\
Expand All @@ -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 change: 1 addition & 0 deletions Gems/OpenXRVk/Code/Source/OpenXRVkSwapChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions Gems/XR/Code/Include/XR/XRBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit b63617b

Please sign in to comment.