You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Update to OpenXR 1.0.26
This commit is contained in:
4
thirdparty/openxr/src/loader/loader_core.cpp
vendored
4
thirdparty/openxr/src/loader/loader_core.cpp
vendored
@@ -35,7 +35,7 @@
|
||||
// Global loader lock to:
|
||||
// 1. Ensure ActiveLoaderInstance get and set operations are done atomically.
|
||||
// 2. Ensure RuntimeInterface isn't used to unload the runtime while the runtime is in use.
|
||||
std::mutex &GetGlobalLoaderMutex() {
|
||||
static std::mutex &GetGlobalLoaderMutex() {
|
||||
static std::mutex loader_mutex;
|
||||
return loader_mutex;
|
||||
}
|
||||
@@ -58,6 +58,8 @@ static XRAPI_ATTR XrResult XRAPI_CALL LoaderXrTermDestroyDebugUtilsMessengerEXT(
|
||||
static XRAPI_ATTR XrResult XRAPI_CALL LoaderXrTermSubmitDebugUtilsMessageEXT(
|
||||
XrInstance instance, XrDebugUtilsMessageSeverityFlagsEXT messageSeverity, XrDebugUtilsMessageTypeFlagsEXT messageTypes,
|
||||
const XrDebugUtilsMessengerCallbackDataEXT *callbackData);
|
||||
static XRAPI_ATTR XrResult XRAPI_CALL LoaderXrGetInstanceProcAddr(XrInstance instance, const char *name,
|
||||
PFN_xrVoidFunction *function);
|
||||
|
||||
// Utility template function meant to validate if a fixed size string contains
|
||||
// a null-terminator.
|
||||
|
||||
12
thirdparty/openxr/src/loader/manifest_file.cpp
vendored
12
thirdparty/openxr/src/loader/manifest_file.cpp
vendored
@@ -348,14 +348,20 @@ static void ReadRuntimeDataFilesInRegistry(const std::string &runtime_registry_l
|
||||
if (ERROR_SUCCESS != open_value) {
|
||||
LoaderLogger::LogWarningMessage("",
|
||||
"ReadRuntimeDataFilesInRegistry - failed to open registry key " + full_registry_location);
|
||||
} else if (ERROR_SUCCESS != RegGetValueW(hkey, nullptr, default_runtime_value_name_w.c_str(),
|
||||
RRF_RT_REG_SZ | REG_EXPAND_SZ | RRF_ZEROONFAILURE, NULL,
|
||||
reinterpret_cast<LPBYTE>(&value_w), &value_size_w)) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (ERROR_SUCCESS != RegGetValueW(hkey, nullptr, default_runtime_value_name_w.c_str(),
|
||||
RRF_RT_REG_SZ | REG_EXPAND_SZ | RRF_ZEROONFAILURE, NULL, reinterpret_cast<LPBYTE>(&value_w),
|
||||
&value_size_w)) {
|
||||
LoaderLogger::LogWarningMessage(
|
||||
"", "ReadRuntimeDataFilesInRegistry - failed to read registry value " + default_runtime_value_name);
|
||||
} else {
|
||||
AddFilesInPath(wide_to_utf8(value_w), false, manifest_files);
|
||||
}
|
||||
|
||||
RegCloseKey(hkey);
|
||||
}
|
||||
|
||||
// Look for layer data files in the provided paths, but first check the environment override to determine
|
||||
|
||||
@@ -354,6 +354,13 @@ void GeneratedXrPopulateDispatchTable(struct XrGeneratedDispatchTable *table,
|
||||
(get_inst_proc_addr(instance, "xrGetAudioInputDeviceGuidOculus", (PFN_xrVoidFunction*)&table->GetAudioInputDeviceGuidOculus));
|
||||
#endif // defined(XR_USE_PLATFORM_WIN32)
|
||||
|
||||
// ---- XR_FB_scene extension commands
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceBoundingBox2DFB", (PFN_xrVoidFunction*)&table->GetSpaceBoundingBox2DFB));
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceBoundingBox3DFB", (PFN_xrVoidFunction*)&table->GetSpaceBoundingBox3DFB));
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceSemanticLabelsFB", (PFN_xrVoidFunction*)&table->GetSpaceSemanticLabelsFB));
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceBoundary2DFB", (PFN_xrVoidFunction*)&table->GetSpaceBoundary2DFB));
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceRoomLayoutFB", (PFN_xrVoidFunction*)&table->GetSpaceRoomLayoutFB));
|
||||
|
||||
// ---- XR_ALMALENCE_digital_lens_control extension commands
|
||||
(get_inst_proc_addr(instance, "xrSetDigitalLensControlALMALENCE", (PFN_xrVoidFunction*)&table->SetDigitalLensControlALMALENCE));
|
||||
|
||||
@@ -368,6 +375,13 @@ void GeneratedXrPopulateDispatchTable(struct XrGeneratedDispatchTable *table,
|
||||
(get_inst_proc_addr(instance, "xrSetPerformanceMetricsStateMETA", (PFN_xrVoidFunction*)&table->SetPerformanceMetricsStateMETA));
|
||||
(get_inst_proc_addr(instance, "xrGetPerformanceMetricsStateMETA", (PFN_xrVoidFunction*)&table->GetPerformanceMetricsStateMETA));
|
||||
(get_inst_proc_addr(instance, "xrQueryPerformanceMetricsCounterMETA", (PFN_xrVoidFunction*)&table->QueryPerformanceMetricsCounterMETA));
|
||||
|
||||
// ---- XR_HTC_passthrough extension commands
|
||||
(get_inst_proc_addr(instance, "xrCreatePassthroughHTC", (PFN_xrVoidFunction*)&table->CreatePassthroughHTC));
|
||||
(get_inst_proc_addr(instance, "xrDestroyPassthroughHTC", (PFN_xrVoidFunction*)&table->DestroyPassthroughHTC));
|
||||
|
||||
// ---- XR_HTC_foveation extension commands
|
||||
(get_inst_proc_addr(instance, "xrApplyFoveationHTC", (PFN_xrVoidFunction*)&table->ApplyFoveationHTC));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -357,6 +357,13 @@ struct XrGeneratedDispatchTable {
|
||||
PFN_xrGetAudioInputDeviceGuidOculus GetAudioInputDeviceGuidOculus;
|
||||
#endif // defined(XR_USE_PLATFORM_WIN32)
|
||||
|
||||
// ---- XR_FB_scene extension commands
|
||||
PFN_xrGetSpaceBoundingBox2DFB GetSpaceBoundingBox2DFB;
|
||||
PFN_xrGetSpaceBoundingBox3DFB GetSpaceBoundingBox3DFB;
|
||||
PFN_xrGetSpaceSemanticLabelsFB GetSpaceSemanticLabelsFB;
|
||||
PFN_xrGetSpaceBoundary2DFB GetSpaceBoundary2DFB;
|
||||
PFN_xrGetSpaceRoomLayoutFB GetSpaceRoomLayoutFB;
|
||||
|
||||
// ---- XR_ALMALENCE_digital_lens_control extension commands
|
||||
PFN_xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE;
|
||||
|
||||
@@ -371,6 +378,13 @@ struct XrGeneratedDispatchTable {
|
||||
PFN_xrSetPerformanceMetricsStateMETA SetPerformanceMetricsStateMETA;
|
||||
PFN_xrGetPerformanceMetricsStateMETA GetPerformanceMetricsStateMETA;
|
||||
PFN_xrQueryPerformanceMetricsCounterMETA QueryPerformanceMetricsCounterMETA;
|
||||
|
||||
// ---- XR_HTC_passthrough extension commands
|
||||
PFN_xrCreatePassthroughHTC CreatePassthroughHTC;
|
||||
PFN_xrDestroyPassthroughHTC DestroyPassthroughHTC;
|
||||
|
||||
// ---- XR_HTC_foveation extension commands
|
||||
PFN_xrApplyFoveationHTC ApplyFoveationHTC;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user