You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Update OpenXR to 1.0.23
This commit is contained in:
6
thirdparty/openxr/src/common/xr_linear.h
vendored
6
thirdparty/openxr/src/common/xr_linear.h
vendored
@@ -126,12 +126,12 @@ static const XrColor4f XrColorCyan = {0.0f, 1.0f, 1.0f, 1.0f};
|
||||
static const XrColor4f XrColorLightGrey = {0.7f, 0.7f, 0.7f, 1.0f};
|
||||
static const XrColor4f XrColorDarkGrey = {0.3f, 0.3f, 0.3f, 1.0f};
|
||||
|
||||
enum GraphicsAPI { GRAPHICS_VULKAN, GRAPHICS_OPENGL, GRAPHICS_OPENGL_ES, GRAPHICS_D3D };
|
||||
typedef enum GraphicsAPI { GRAPHICS_VULKAN, GRAPHICS_OPENGL, GRAPHICS_OPENGL_ES, GRAPHICS_D3D } GraphicsAPI;
|
||||
|
||||
// Column-major, pre-multiplied. This type does not exist in the OpenXR API and is provided for convenience.
|
||||
struct XrMatrix4x4f {
|
||||
typedef struct XrMatrix4x4f {
|
||||
float m[16];
|
||||
};
|
||||
} XrMatrix4x4f;
|
||||
|
||||
inline static float XrRcpSqrt(const float x) {
|
||||
const float SMALLEST_NON_DENORMAL = 1.1754943508222875e-038f; // ( 1U << 23 )
|
||||
|
||||
@@ -202,6 +202,9 @@ void GeneratedXrPopulateDispatchTable(struct XrGeneratedDispatchTable *table,
|
||||
|
||||
// ---- XR_MSFT_spatial_graph_bridge extension commands
|
||||
(get_inst_proc_addr(instance, "xrCreateSpatialGraphNodeSpaceMSFT", (PFN_xrVoidFunction*)&table->CreateSpatialGraphNodeSpaceMSFT));
|
||||
(get_inst_proc_addr(instance, "xrTryCreateSpatialGraphStaticNodeBindingMSFT", (PFN_xrVoidFunction*)&table->TryCreateSpatialGraphStaticNodeBindingMSFT));
|
||||
(get_inst_proc_addr(instance, "xrDestroySpatialGraphNodeBindingMSFT", (PFN_xrVoidFunction*)&table->DestroySpatialGraphNodeBindingMSFT));
|
||||
(get_inst_proc_addr(instance, "xrGetSpatialGraphNodeBindingPropertiesMSFT", (PFN_xrVoidFunction*)&table->GetSpatialGraphNodeBindingPropertiesMSFT));
|
||||
|
||||
// ---- XR_EXT_hand_tracking extension commands
|
||||
(get_inst_proc_addr(instance, "xrCreateHandTrackerEXT", (PFN_xrVoidFunction*)&table->CreateHandTrackerEXT));
|
||||
@@ -269,6 +272,13 @@ void GeneratedXrPopulateDispatchTable(struct XrGeneratedDispatchTable *table,
|
||||
// ---- XR_FB_hand_tracking_mesh extension commands
|
||||
(get_inst_proc_addr(instance, "xrGetHandMeshFB", (PFN_xrVoidFunction*)&table->GetHandMeshFB));
|
||||
|
||||
// ---- XR_FB_spatial_entity extension commands
|
||||
(get_inst_proc_addr(instance, "xrCreateSpatialAnchorFB", (PFN_xrVoidFunction*)&table->CreateSpatialAnchorFB));
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceUuidFB", (PFN_xrVoidFunction*)&table->GetSpaceUuidFB));
|
||||
(get_inst_proc_addr(instance, "xrEnumerateSpaceSupportedComponentsFB", (PFN_xrVoidFunction*)&table->EnumerateSpaceSupportedComponentsFB));
|
||||
(get_inst_proc_addr(instance, "xrSetSpaceComponentStatusFB", (PFN_xrVoidFunction*)&table->SetSpaceComponentStatusFB));
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceComponentStatusFB", (PFN_xrVoidFunction*)&table->GetSpaceComponentStatusFB));
|
||||
|
||||
// ---- XR_FB_foveation extension commands
|
||||
(get_inst_proc_addr(instance, "xrCreateFoveationProfileFB", (PFN_xrVoidFunction*)&table->CreateFoveationProfileFB));
|
||||
(get_inst_proc_addr(instance, "xrDestroyFoveationProfileFB", (PFN_xrVoidFunction*)&table->DestroyFoveationProfileFB));
|
||||
@@ -316,6 +326,9 @@ void GeneratedXrPopulateDispatchTable(struct XrGeneratedDispatchTable *table,
|
||||
(get_inst_proc_addr(instance, "xrGetMarkerSizeVARJO", (PFN_xrVoidFunction*)&table->GetMarkerSizeVARJO));
|
||||
(get_inst_proc_addr(instance, "xrCreateMarkerSpaceVARJO", (PFN_xrVoidFunction*)&table->CreateMarkerSpaceVARJO));
|
||||
|
||||
// ---- XR_VARJO_view_offset extension commands
|
||||
(get_inst_proc_addr(instance, "xrSetViewOffsetVARJO", (PFN_xrVoidFunction*)&table->SetViewOffsetVARJO));
|
||||
|
||||
// ---- XR_MSFT_spatial_anchor_persistence extension commands
|
||||
(get_inst_proc_addr(instance, "xrCreateSpatialAnchorStoreConnectionMSFT", (PFN_xrVoidFunction*)&table->CreateSpatialAnchorStoreConnectionMSFT));
|
||||
(get_inst_proc_addr(instance, "xrDestroySpatialAnchorStoreConnectionMSFT", (PFN_xrVoidFunction*)&table->DestroySpatialAnchorStoreConnectionMSFT));
|
||||
@@ -325,6 +338,14 @@ void GeneratedXrPopulateDispatchTable(struct XrGeneratedDispatchTable *table,
|
||||
(get_inst_proc_addr(instance, "xrUnpersistSpatialAnchorMSFT", (PFN_xrVoidFunction*)&table->UnpersistSpatialAnchorMSFT));
|
||||
(get_inst_proc_addr(instance, "xrClearSpatialAnchorStoreMSFT", (PFN_xrVoidFunction*)&table->ClearSpatialAnchorStoreMSFT));
|
||||
|
||||
// ---- XR_FB_spatial_entity_query extension commands
|
||||
(get_inst_proc_addr(instance, "xrQuerySpacesFB", (PFN_xrVoidFunction*)&table->QuerySpacesFB));
|
||||
(get_inst_proc_addr(instance, "xrRetrieveSpaceQueryResultsFB", (PFN_xrVoidFunction*)&table->RetrieveSpaceQueryResultsFB));
|
||||
|
||||
// ---- XR_FB_spatial_entity_storage extension commands
|
||||
(get_inst_proc_addr(instance, "xrSaveSpaceFB", (PFN_xrVoidFunction*)&table->SaveSpaceFB));
|
||||
(get_inst_proc_addr(instance, "xrEraseSpaceFB", (PFN_xrVoidFunction*)&table->EraseSpaceFB));
|
||||
|
||||
// ---- XR_OCULUS_audio_device_guid extension commands
|
||||
#if defined(XR_USE_PLATFORM_WIN32)
|
||||
(get_inst_proc_addr(instance, "xrGetAudioOutputDeviceGuidOculus", (PFN_xrVoidFunction*)&table->GetAudioOutputDeviceGuidOculus));
|
||||
@@ -336,8 +357,17 @@ void GeneratedXrPopulateDispatchTable(struct XrGeneratedDispatchTable *table,
|
||||
// ---- XR_ALMALENCE_digital_lens_control extension commands
|
||||
(get_inst_proc_addr(instance, "xrSetDigitalLensControlALMALENCE", (PFN_xrVoidFunction*)&table->SetDigitalLensControlALMALENCE));
|
||||
|
||||
// ---- XR_FB_spatial_entity_container extension commands
|
||||
(get_inst_proc_addr(instance, "xrGetSpaceContainerFB", (PFN_xrVoidFunction*)&table->GetSpaceContainerFB));
|
||||
|
||||
// ---- XR_FB_passthrough_keyboard_hands extension commands
|
||||
(get_inst_proc_addr(instance, "xrPassthroughLayerSetKeyboardHandsIntensityFB", (PFN_xrVoidFunction*)&table->PassthroughLayerSetKeyboardHandsIntensityFB));
|
||||
|
||||
// ---- XR_META_performance_metrics extension commands
|
||||
(get_inst_proc_addr(instance, "xrEnumeratePerformanceMetricsCounterPathsMETA", (PFN_xrVoidFunction*)&table->EnumeratePerformanceMetricsCounterPathsMETA));
|
||||
(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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -205,6 +205,9 @@ struct XrGeneratedDispatchTable {
|
||||
|
||||
// ---- XR_MSFT_spatial_graph_bridge extension commands
|
||||
PFN_xrCreateSpatialGraphNodeSpaceMSFT CreateSpatialGraphNodeSpaceMSFT;
|
||||
PFN_xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT;
|
||||
PFN_xrDestroySpatialGraphNodeBindingMSFT DestroySpatialGraphNodeBindingMSFT;
|
||||
PFN_xrGetSpatialGraphNodeBindingPropertiesMSFT GetSpatialGraphNodeBindingPropertiesMSFT;
|
||||
|
||||
// ---- XR_EXT_hand_tracking extension commands
|
||||
PFN_xrCreateHandTrackerEXT CreateHandTrackerEXT;
|
||||
@@ -272,6 +275,13 @@ struct XrGeneratedDispatchTable {
|
||||
// ---- XR_FB_hand_tracking_mesh extension commands
|
||||
PFN_xrGetHandMeshFB GetHandMeshFB;
|
||||
|
||||
// ---- XR_FB_spatial_entity extension commands
|
||||
PFN_xrCreateSpatialAnchorFB CreateSpatialAnchorFB;
|
||||
PFN_xrGetSpaceUuidFB GetSpaceUuidFB;
|
||||
PFN_xrEnumerateSpaceSupportedComponentsFB EnumerateSpaceSupportedComponentsFB;
|
||||
PFN_xrSetSpaceComponentStatusFB SetSpaceComponentStatusFB;
|
||||
PFN_xrGetSpaceComponentStatusFB GetSpaceComponentStatusFB;
|
||||
|
||||
// ---- XR_FB_foveation extension commands
|
||||
PFN_xrCreateFoveationProfileFB CreateFoveationProfileFB;
|
||||
PFN_xrDestroyFoveationProfileFB DestroyFoveationProfileFB;
|
||||
@@ -319,6 +329,9 @@ struct XrGeneratedDispatchTable {
|
||||
PFN_xrGetMarkerSizeVARJO GetMarkerSizeVARJO;
|
||||
PFN_xrCreateMarkerSpaceVARJO CreateMarkerSpaceVARJO;
|
||||
|
||||
// ---- XR_VARJO_view_offset extension commands
|
||||
PFN_xrSetViewOffsetVARJO SetViewOffsetVARJO;
|
||||
|
||||
// ---- XR_MSFT_spatial_anchor_persistence extension commands
|
||||
PFN_xrCreateSpatialAnchorStoreConnectionMSFT CreateSpatialAnchorStoreConnectionMSFT;
|
||||
PFN_xrDestroySpatialAnchorStoreConnectionMSFT DestroySpatialAnchorStoreConnectionMSFT;
|
||||
@@ -328,6 +341,14 @@ struct XrGeneratedDispatchTable {
|
||||
PFN_xrUnpersistSpatialAnchorMSFT UnpersistSpatialAnchorMSFT;
|
||||
PFN_xrClearSpatialAnchorStoreMSFT ClearSpatialAnchorStoreMSFT;
|
||||
|
||||
// ---- XR_FB_spatial_entity_query extension commands
|
||||
PFN_xrQuerySpacesFB QuerySpacesFB;
|
||||
PFN_xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB;
|
||||
|
||||
// ---- XR_FB_spatial_entity_storage extension commands
|
||||
PFN_xrSaveSpaceFB SaveSpaceFB;
|
||||
PFN_xrEraseSpaceFB EraseSpaceFB;
|
||||
|
||||
// ---- XR_OCULUS_audio_device_guid extension commands
|
||||
#if defined(XR_USE_PLATFORM_WIN32)
|
||||
PFN_xrGetAudioOutputDeviceGuidOculus GetAudioOutputDeviceGuidOculus;
|
||||
@@ -339,8 +360,17 @@ struct XrGeneratedDispatchTable {
|
||||
// ---- XR_ALMALENCE_digital_lens_control extension commands
|
||||
PFN_xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE;
|
||||
|
||||
// ---- XR_FB_spatial_entity_container extension commands
|
||||
PFN_xrGetSpaceContainerFB GetSpaceContainerFB;
|
||||
|
||||
// ---- XR_FB_passthrough_keyboard_hands extension commands
|
||||
PFN_xrPassthroughLayerSetKeyboardHandsIntensityFB PassthroughLayerSetKeyboardHandsIntensityFB;
|
||||
|
||||
// ---- XR_META_performance_metrics extension commands
|
||||
PFN_xrEnumeratePerformanceMetricsCounterPathsMETA EnumeratePerformanceMetricsCounterPathsMETA;
|
||||
PFN_xrSetPerformanceMetricsStateMETA SetPerformanceMetricsStateMETA;
|
||||
PFN_xrGetPerformanceMetricsStateMETA GetPerformanceMetricsStateMETA;
|
||||
PFN_xrQueryPerformanceMetricsCounterMETA QueryPerformanceMetricsCounterMETA;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user