1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

OpenXR: Update to OpenXR 1.1.52

This commit is contained in:
Bastiaan Olij
2025-09-22 21:25:45 +10:00
parent 149a4b4ca1
commit d9c0183bd7
19 changed files with 1763 additions and 129 deletions

View File

@@ -51,7 +51,7 @@ class ManifestFile {
const std::string &Filename() const { return _filename; }
const std::string &LibraryPath() const { return _library_path; }
void GetInstanceExtensionProperties(std::vector<XrExtensionProperties> &props);
const std::string &GetFunctionName(const std::string &func_name) const;
std::string GetFunctionName(const std::string &func_name) const;
protected:
ManifestFile(ManifestFileType type, const std::string &filename, const std::string &library_path);
@@ -107,12 +107,13 @@ class ApiLayerManifestFile : public ManifestFile {
static bool LocateLibraryRelativeToJson(const std::string &json_filename, const std::string &library_path,
std::string &out_combined_path);
#if defined(XR_KHR_LOADER_INIT_SUPPORT) && defined(XR_USE_PLATFORM_ANDROID)
// actually only implemented if defined(XR_USE_PLATFORM_ANDROID) && defined(XR_HAS_REQUIRED_PLATFORM_LOADER_INIT_STRUCT)
#if defined(XR_USE_PLATFORM_ANDROID)
static bool LocateLibraryInAssets(const std::string &json_filename, const std::string &library_path,
std::string &out_combined_path);
static void AddManifestFilesAndroid(const std::string &openxr_command, ManifestFileType type,
std::vector<std::unique_ptr<ApiLayerManifestFile>> &manifest_files);
#endif // defined(XR_USE_PLATFORM_ANDROID) && defined(XR_KHR_LOADER_INIT_SUPPORT)
#endif // defined(XR_USE_PLATFORM_ANDROID)
JsonVersion _api_version;
std::string _layer_name;