mirror of
https://github.com/suyu-emu/Yucom.git
synced 2026-09-21 13:22:43 -07:00
wineopenxr: Update to 1.0.18 registry version.
This commit is contained in:
committed by
Andrew Eikum
parent
95b1dc2b0b
commit
9cf5ff5cec
@@ -183,6 +183,12 @@ FUNCTION_OVERRIDES = {
|
||||
"xrDestroySceneObserverMSFT" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
"xrCreateSceneMSFT" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
"xrDestroySceneMSFT" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
|
||||
"xrCreateSpatialAnchorFromPersistedNameMSFT" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
"xrCreateSpatialAnchorStoreConnectionMSFT" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
"xrDestroySpatialAnchorStoreConnectionMSFT" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
"xrCreateFoveationProfileFB" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
"xrDestroyFoveationProfileFB" : {"dispatch" : True, "driver" : True, "thunk" : False},
|
||||
}
|
||||
|
||||
STRUCT_CHAIN_CONVERSIONS = [
|
||||
@@ -892,6 +898,8 @@ class XrHandle(object):
|
||||
native_handle_name = "scene_observer_msft"
|
||||
if self.name == "XrSceneMSFT":
|
||||
native_handle_name = "scene_msft"
|
||||
if self.name == "XrSpatialAnchorStoreConnectionMSFT":
|
||||
native_handle_name = "spatial_anchor_store_connection"
|
||||
|
||||
if native_handle_name:
|
||||
return "((wine_{0} *){1})->{2}".format(self.name, name, native_handle_name)
|
||||
|
||||
@@ -1045,6 +1045,36 @@ XrResult WINAPI wine_xrCreateSpatialAnchorMSFT(XrSession session,
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session,
|
||||
const XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT *create_info,
|
||||
XrSpatialAnchorMSFT *anchor)
|
||||
{
|
||||
wine_XrSession *wine_session = (wine_XrSession *)session;
|
||||
wine_XrSpatialAnchorMSFT *wine_anchor;
|
||||
XrResult res;
|
||||
|
||||
WINE_TRACE("%p, %p, %p\n", session, create_info, anchor);
|
||||
|
||||
wine_anchor = heap_alloc_zero(sizeof(*wine_anchor));
|
||||
|
||||
res = wine_session->wine_instance->funcs.p_xrCreateSpatialAnchorFromPersistedNameMSFT(wine_session->session,
|
||||
create_info, &wine_anchor->spatial_anchor);
|
||||
if(res != XR_SUCCESS){
|
||||
WINE_WARN("xrCreateSpatialAnchorFromPersistedNameMSFT failed: %d\n", res);
|
||||
heap_free(wine_anchor);
|
||||
return res;
|
||||
}
|
||||
|
||||
wine_anchor->wine_session = wine_session;
|
||||
|
||||
*anchor = (XrSpatialAnchorMSFT)wine_anchor;
|
||||
|
||||
WINE_TRACE("allocated wine spatialAnchor %p for native spatialAnchor %p\n",
|
||||
wine_anchor, wine_anchor->spatial_anchor);
|
||||
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor)
|
||||
{
|
||||
wine_XrSpatialAnchorMSFT *wine_anchor = (wine_XrSpatialAnchorMSFT *)anchor;
|
||||
@@ -1063,6 +1093,55 @@ XrResult WINAPI wine_xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor)
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, XrSpatialAnchorStoreConnectionMSFT *anchor_store)
|
||||
{
|
||||
wine_XrSpatialAnchorStoreConnectionMSFT *wine_anchor_store;
|
||||
wine_XrSession *wine_session = (wine_XrSession *)session;
|
||||
XrResult res;
|
||||
|
||||
WINE_TRACE("%p, %p\n", session, anchor_store);
|
||||
|
||||
wine_anchor_store = heap_alloc_zero(sizeof(*wine_anchor_store));
|
||||
|
||||
res = wine_session->wine_instance->funcs.p_xrCreateSpatialAnchorStoreConnectionMSFT(wine_session->session,
|
||||
&wine_anchor_store->spatial_anchor_store_connection);
|
||||
|
||||
if(res != XR_SUCCESS){
|
||||
WINE_WARN("xrCreateSpatialAnchorStoreConnectionMSFT failed: %d\n", res);
|
||||
heap_free(wine_anchor_store);
|
||||
return res;
|
||||
}
|
||||
|
||||
wine_anchor_store->wine_session = wine_session;
|
||||
|
||||
*anchor_store = (XrSpatialAnchorStoreConnectionMSFT)wine_anchor_store;
|
||||
|
||||
WINE_TRACE("allocated wine_anchor_store %p for native spatial_anchor_store_connection %p\n",
|
||||
wine_anchor_store, wine_anchor_store->spatial_anchor_store_connection);
|
||||
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrDestroySpatialAnchorStoreConnectionMSFT(XrSpatialAnchorStoreConnectionMSFT anchor_store)
|
||||
{
|
||||
wine_XrSpatialAnchorStoreConnectionMSFT *wine_anchor_store
|
||||
= (wine_XrSpatialAnchorStoreConnectionMSFT *)anchor_store;
|
||||
XrResult res;
|
||||
|
||||
WINE_TRACE("%p\n", anchor_store);
|
||||
|
||||
res = wine_anchor_store->wine_session->wine_instance->funcs.p_xrDestroySpatialAnchorStoreConnectionMSFT
|
||||
(wine_anchor_store->spatial_anchor_store_connection);
|
||||
if(res != XR_SUCCESS){
|
||||
WINE_WARN("xrDestroySpatialAnchorStoreConnectionMSFT failed: %d\n", res);
|
||||
return res;
|
||||
}
|
||||
|
||||
heap_free(wine_anchor_store);
|
||||
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrCreateSceneObserverMSFT(XrSession session,
|
||||
const XrSceneObserverCreateInfoMSFT *createInfo, XrSceneObserverMSFT *observer)
|
||||
{
|
||||
@@ -1157,6 +1236,54 @@ XrResult WINAPI wine_xrDestroySceneMSFT(XrSceneMSFT scene)
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrCreateFoveationProfileFB(XrSession session, const XrFoveationProfileCreateInfoFB *create_info,
|
||||
XrFoveationProfileFB *profile)
|
||||
{
|
||||
wine_XrSession *wine_session = (wine_XrSession *)session;
|
||||
wine_XrFoveationProfileFB *wine_foveation_profile;
|
||||
XrResult res;
|
||||
|
||||
WINE_TRACE("%p, %p\n", session, profile);
|
||||
|
||||
wine_foveation_profile = heap_alloc_zero(sizeof(*wine_foveation_profile));
|
||||
|
||||
res = wine_session->wine_instance->funcs.p_xrCreateFoveationProfileFB(wine_session->session, create_info,
|
||||
&wine_foveation_profile->foveation_profile);
|
||||
|
||||
if(res != XR_SUCCESS){
|
||||
WINE_WARN("xrCreateSpatialAnchorStoreConnectionMSFT failed: %d\n", res);
|
||||
heap_free(wine_foveation_profile);
|
||||
return res;
|
||||
}
|
||||
|
||||
wine_foveation_profile->wine_session = wine_session;
|
||||
|
||||
*profile = (XrFoveationProfileFB)wine_foveation_profile;
|
||||
|
||||
WINE_TRACE("allocated wine_foveation_profile %p for native foveation_profile %p.\n",
|
||||
wine_foveation_profile, wine_foveation_profile->foveation_profile);
|
||||
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrDestroyFoveationProfileFB(XrFoveationProfileFB profile)
|
||||
{
|
||||
wine_XrFoveationProfileFB *wine_profile = (wine_XrFoveationProfileFB *)profile;
|
||||
XrResult res;
|
||||
|
||||
WINE_TRACE("%p\n", profile);
|
||||
|
||||
res = wine_profile->wine_session->wine_instance->funcs.p_xrDestroyFoveationProfileFB(wine_profile->foveation_profile);
|
||||
if(res != XR_SUCCESS){
|
||||
WINE_WARN("rDestroyFoveationProfileFB failed: %d\n", res);
|
||||
return res;
|
||||
}
|
||||
|
||||
heap_free(wine_profile);
|
||||
|
||||
return XR_SUCCESS;
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrNegotiateLoaderRuntimeInterface(
|
||||
const XrNegotiateLoaderInfo_win *loaderInfo,
|
||||
XrNegotiateRuntimeRequest_win *runtimeRequest)
|
||||
|
||||
@@ -50,6 +50,11 @@ typedef struct wine_XrSpatialAnchorMSFT {
|
||||
struct wine_XrSession *wine_session;
|
||||
} wine_XrSpatialAnchorMSFT;
|
||||
|
||||
typedef struct XrSpatialAnchorStoreConnectionMSFT {
|
||||
XrSpatialAnchorStoreConnectionMSFT spatial_anchor_store_connection;
|
||||
struct wine_XrSession *wine_session;
|
||||
} wine_XrSpatialAnchorStoreConnectionMSFT;
|
||||
|
||||
typedef struct wine_XrSceneObserverMSFT {
|
||||
XrSceneObserverMSFT scene_observer_msft;
|
||||
struct wine_XrSession *wine_session;
|
||||
@@ -60,6 +65,11 @@ typedef struct wine_XrSceneMSFT {
|
||||
struct wine_XrSceneObserverMSFT *wine_scene_observer_msft;
|
||||
} wine_XrSceneMSFT;
|
||||
|
||||
typedef struct wine_XrFoveationProfileFB {
|
||||
XrFoveationProfileFB foveation_profile;
|
||||
struct wine_XrSession *wine_session;
|
||||
} wine_XrFoveationProfileFB;
|
||||
|
||||
typedef struct wine_XrSwapchain{
|
||||
XrSwapchain swapchain;
|
||||
struct wine_XrSession *wine_session;
|
||||
|
||||
@@ -107,6 +107,12 @@ XrResult WINAPI wine_xrBeginSession(XrSession session, const XrSessionBeginInfo
|
||||
return xrBeginSession(((wine_XrSession *)session)->session, beginInfo);
|
||||
}
|
||||
|
||||
static XrResult WINAPI wine_xrClearSpatialAnchorStoreMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore)
|
||||
{
|
||||
WINE_TRACE("%p\n", spatialAnchorStore);
|
||||
return ((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->wine_session->wine_instance->funcs.p_xrClearSpatialAnchorStoreMSFT(((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->spatial_anchor_store_connection);
|
||||
}
|
||||
|
||||
static XrResult WINAPI wine_xrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, const XrNewSceneComputeInfoMSFT *computeInfo)
|
||||
{
|
||||
WINE_TRACE("%p, %p\n", sceneObserver, computeInfo);
|
||||
@@ -215,6 +221,12 @@ XrResult WINAPI wine_xrEnumerateEnvironmentBlendModes(XrInstance instance, XrSys
|
||||
return xrEnumerateEnvironmentBlendModes(((wine_XrInstance *)instance)->instance, systemId, viewConfigurationType, environmentBlendModeCapacityInput, environmentBlendModeCountOutput, environmentBlendModes);
|
||||
}
|
||||
|
||||
static XrResult WINAPI wine_xrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, uint32_t spatialAnchorNamesCapacityInput, uint32_t *spatialAnchorNamesCountOutput, XrSpatialAnchorPersistenceNameMSFT *persistedAnchorNames)
|
||||
{
|
||||
WINE_TRACE("%p, %u, %p, %p\n", spatialAnchorStore, spatialAnchorNamesCapacityInput, spatialAnchorNamesCountOutput, persistedAnchorNames);
|
||||
return ((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->wine_session->wine_instance->funcs.p_xrEnumeratePersistedSpatialAnchorNamesMSFT(((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->spatial_anchor_store_connection, spatialAnchorNamesCapacityInput, spatialAnchorNamesCountOutput, persistedAnchorNames);
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrEnumerateReferenceSpaces(XrSession session, uint32_t spaceCapacityInput, uint32_t *spaceCountOutput, XrReferenceSpaceType *spaces)
|
||||
{
|
||||
WINE_TRACE("%p, %u, %p, %p\n", session, spaceCapacityInput, spaceCountOutput, spaces);
|
||||
@@ -448,6 +460,12 @@ static XrResult WINAPI wine_xrPerfSettingsSetPerformanceLevelEXT(XrSession sessi
|
||||
return ((wine_XrSession *)session)->wine_instance->funcs.p_xrPerfSettingsSetPerformanceLevelEXT(((wine_XrSession *)session)->session, domain, level);
|
||||
}
|
||||
|
||||
static XrResult WINAPI wine_xrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, const XrSpatialAnchorPersistenceInfoMSFT *spatialAnchorPersistenceInfo)
|
||||
{
|
||||
WINE_TRACE("%p, %p\n", spatialAnchorStore, spatialAnchorPersistenceInfo);
|
||||
return ((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->wine_session->wine_instance->funcs.p_xrPersistSpatialAnchorMSFT(((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->spatial_anchor_store_connection, spatialAnchorPersistenceInfo);
|
||||
}
|
||||
|
||||
XrResult WINAPI wine_xrReleaseSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageReleaseInfo *releaseInfo)
|
||||
{
|
||||
WINE_TRACE("%p, %p\n", swapchain, releaseInfo);
|
||||
@@ -550,6 +568,12 @@ static XrResult WINAPI wine_xrThermalGetTemperatureTrendEXT(XrSession session, X
|
||||
return ((wine_XrSession *)session)->wine_instance->funcs.p_xrThermalGetTemperatureTrendEXT(((wine_XrSession *)session)->session, domain, notificationLevel, tempHeadroom, tempSlope);
|
||||
}
|
||||
|
||||
static XrResult WINAPI wine_xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, const XrSpatialAnchorPersistenceNameMSFT *spatialAnchorPersistenceName)
|
||||
{
|
||||
WINE_TRACE("%p, %p\n", spatialAnchorStore, spatialAnchorPersistenceName);
|
||||
return ((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->wine_session->wine_instance->funcs.p_xrUnpersistSpatialAnchorMSFT(((wine_XrSpatialAnchorStoreConnectionMSFT *)spatialAnchorStore)->spatial_anchor_store_connection, spatialAnchorPersistenceName);
|
||||
}
|
||||
|
||||
static XrResult WINAPI wine_xrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, const XrHandMeshUpdateInfoMSFT *updateInfo, XrHandMeshMSFT *handMesh)
|
||||
{
|
||||
WINE_TRACE("%p, %p, %p\n", handTracker, updateInfo, handMesh);
|
||||
@@ -581,12 +605,14 @@ static const struct openxr_func xr_dispatch_table[] =
|
||||
{"xrAttachSessionActionSets", &wine_xrAttachSessionActionSets},
|
||||
{"xrBeginFrame", &wine_xrBeginFrame},
|
||||
{"xrBeginSession", &wine_xrBeginSession},
|
||||
{"xrClearSpatialAnchorStoreMSFT", &wine_xrClearSpatialAnchorStoreMSFT},
|
||||
{"xrComputeNewSceneMSFT", &wine_xrComputeNewSceneMSFT},
|
||||
{"xrConvertTimeToWin32PerformanceCounterKHR", &wine_xrConvertTimeToWin32PerformanceCounterKHR},
|
||||
{"xrConvertWin32PerformanceCounterToTimeKHR", &wine_xrConvertWin32PerformanceCounterToTimeKHR},
|
||||
{"xrCreateAction", &wine_xrCreateAction},
|
||||
{"xrCreateActionSet", &wine_xrCreateActionSet},
|
||||
{"xrCreateActionSpace", &wine_xrCreateActionSpace},
|
||||
{"xrCreateFoveationProfileFB", &wine_xrCreateFoveationProfileFB},
|
||||
{"xrCreateHandMeshSpaceMSFT", &wine_xrCreateHandMeshSpaceMSFT},
|
||||
{"xrCreateHandTrackerEXT", &wine_xrCreateHandTrackerEXT},
|
||||
{"xrCreateInstance", &wine_xrCreateInstance},
|
||||
@@ -594,8 +620,10 @@ static const struct openxr_func xr_dispatch_table[] =
|
||||
{"xrCreateSceneMSFT", &wine_xrCreateSceneMSFT},
|
||||
{"xrCreateSceneObserverMSFT", &wine_xrCreateSceneObserverMSFT},
|
||||
{"xrCreateSession", &wine_xrCreateSession},
|
||||
{"xrCreateSpatialAnchorFromPersistedNameMSFT", &wine_xrCreateSpatialAnchorFromPersistedNameMSFT},
|
||||
{"xrCreateSpatialAnchorMSFT", &wine_xrCreateSpatialAnchorMSFT},
|
||||
{"xrCreateSpatialAnchorSpaceMSFT", &wine_xrCreateSpatialAnchorSpaceMSFT},
|
||||
{"xrCreateSpatialAnchorStoreConnectionMSFT", &wine_xrCreateSpatialAnchorStoreConnectionMSFT},
|
||||
{"xrCreateSpatialGraphNodeSpaceMSFT", &wine_xrCreateSpatialGraphNodeSpaceMSFT},
|
||||
{"xrCreateSwapchain", &wine_xrCreateSwapchain},
|
||||
{"xrCreateVulkanDeviceKHR", &wine_xrCreateVulkanDeviceKHR},
|
||||
@@ -603,6 +631,7 @@ static const struct openxr_func xr_dispatch_table[] =
|
||||
{"xrDeserializeSceneMSFT", &wine_xrDeserializeSceneMSFT},
|
||||
{"xrDestroyAction", &wine_xrDestroyAction},
|
||||
{"xrDestroyActionSet", &wine_xrDestroyActionSet},
|
||||
{"xrDestroyFoveationProfileFB", &wine_xrDestroyFoveationProfileFB},
|
||||
{"xrDestroyHandTrackerEXT", &wine_xrDestroyHandTrackerEXT},
|
||||
{"xrDestroyInstance", &wine_xrDestroyInstance},
|
||||
{"xrDestroySceneMSFT", &wine_xrDestroySceneMSFT},
|
||||
@@ -610,6 +639,7 @@ static const struct openxr_func xr_dispatch_table[] =
|
||||
{"xrDestroySession", &wine_xrDestroySession},
|
||||
{"xrDestroySpace", &wine_xrDestroySpace},
|
||||
{"xrDestroySpatialAnchorMSFT", &wine_xrDestroySpatialAnchorMSFT},
|
||||
{"xrDestroySpatialAnchorStoreConnectionMSFT", &wine_xrDestroySpatialAnchorStoreConnectionMSFT},
|
||||
{"xrDestroySwapchain", &wine_xrDestroySwapchain},
|
||||
{"xrEndFrame", &wine_xrEndFrame},
|
||||
{"xrEndSession", &wine_xrEndSession},
|
||||
@@ -619,6 +649,7 @@ static const struct openxr_func xr_dispatch_table[] =
|
||||
{"xrEnumerateDisplayRefreshRatesFB", &wine_xrEnumerateDisplayRefreshRatesFB},
|
||||
{"xrEnumerateEnvironmentBlendModes", &wine_xrEnumerateEnvironmentBlendModes},
|
||||
{"xrEnumerateInstanceExtensionProperties", &wine_xrEnumerateInstanceExtensionProperties},
|
||||
{"xrEnumeratePersistedSpatialAnchorNamesMSFT", &wine_xrEnumeratePersistedSpatialAnchorNamesMSFT},
|
||||
{"xrEnumerateReferenceSpaces", &wine_xrEnumerateReferenceSpaces},
|
||||
{"xrEnumerateReprojectionModesMSFT", &wine_xrEnumerateReprojectionModesMSFT},
|
||||
{"xrEnumerateSceneComputeFeaturesMSFT", &wine_xrEnumerateSceneComputeFeaturesMSFT},
|
||||
@@ -666,6 +697,7 @@ static const struct openxr_func xr_dispatch_table[] =
|
||||
{"xrLocateViews", &wine_xrLocateViews},
|
||||
{"xrPathToString", &wine_xrPathToString},
|
||||
{"xrPerfSettingsSetPerformanceLevelEXT", &wine_xrPerfSettingsSetPerformanceLevelEXT},
|
||||
{"xrPersistSpatialAnchorMSFT", &wine_xrPersistSpatialAnchorMSFT},
|
||||
{"xrPollEvent", &wine_xrPollEvent},
|
||||
{"xrReleaseSwapchainImage", &wine_xrReleaseSwapchainImage},
|
||||
{"xrRequestDisplayRefreshRateFB", &wine_xrRequestDisplayRefreshRateFB},
|
||||
@@ -684,6 +716,7 @@ static const struct openxr_func xr_dispatch_table[] =
|
||||
{"xrSuggestInteractionProfileBindings", &wine_xrSuggestInteractionProfileBindings},
|
||||
{"xrSyncActions", &wine_xrSyncActions},
|
||||
{"xrThermalGetTemperatureTrendEXT", &wine_xrThermalGetTemperatureTrendEXT},
|
||||
{"xrUnpersistSpatialAnchorMSFT", &wine_xrUnpersistSpatialAnchorMSFT},
|
||||
{"xrUpdateHandMeshMSFT", &wine_xrUpdateHandMeshMSFT},
|
||||
{"xrUpdateSwapchainFB", &wine_xrUpdateSwapchainFB},
|
||||
{"xrWaitFrame", &wine_xrWaitFrame},
|
||||
@@ -719,7 +752,13 @@ static const char * const xr_extensions[] =
|
||||
"XR_EXT_view_configuration_depth_range",
|
||||
"XR_EXT_win32_appcontainer_compatible",
|
||||
"XR_FB_color_space",
|
||||
"XR_FB_composition_layer_alpha_blend",
|
||||
"XR_FB_composition_layer_image_layout",
|
||||
"XR_FB_composition_layer_secure_content",
|
||||
"XR_FB_display_refresh_rate",
|
||||
"XR_FB_foveation",
|
||||
"XR_FB_foveation_configuration",
|
||||
"XR_FB_foveation_vulkan",
|
||||
"XR_FB_swapchain_update_state",
|
||||
"XR_FB_swapchain_update_state_vulkan",
|
||||
"XR_HTC_vive_cosmos_controller_interaction",
|
||||
@@ -734,6 +773,7 @@ static const char * const xr_extensions[] =
|
||||
"XR_KHR_composition_layer_equirect",
|
||||
"XR_KHR_composition_layer_equirect2",
|
||||
"XR_KHR_opengl_enable",
|
||||
"XR_KHR_swapchain_usage_input_attachment_bit",
|
||||
"XR_KHR_visibility_mask",
|
||||
"XR_KHR_vulkan_enable",
|
||||
"XR_KHR_vulkan_enable2",
|
||||
@@ -751,6 +791,7 @@ static const char * const xr_extensions[] =
|
||||
"XR_MSFT_scene_understanding_serialization",
|
||||
"XR_MSFT_secondary_view_configuration",
|
||||
"XR_MSFT_spatial_anchor",
|
||||
"XR_MSFT_spatial_anchor_persistence",
|
||||
"XR_MSFT_spatial_graph_bridge",
|
||||
"XR_MSFT_unbounded_reference_space",
|
||||
"XR_OCULUS_android_session_state_enable",
|
||||
|
||||
@@ -27,21 +27,26 @@
|
||||
/* Functions for which we have custom implementations outside of the thunks. */
|
||||
XrResult WINAPI wine_xrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, XrTime time, LARGE_INTEGER *performanceCounter) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, const LARGE_INTEGER *performanceCounter, XrTime *time) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateFoveationProfileFB(XrSession session, const XrFoveationProfileCreateInfoFB *createInfo, XrFoveationProfileFB *profile) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateHandTrackerEXT(XrSession session, const XrHandTrackerCreateInfoEXT *createInfo, XrHandTrackerEXT *handTracker) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateInstance(const XrInstanceCreateInfo *createInfo, XrInstance *instance);
|
||||
XrResult WINAPI wine_xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, const XrSceneCreateInfoMSFT *createInfo, XrSceneMSFT *scene) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateSceneObserverMSFT(XrSession session, const XrSceneObserverCreateInfoMSFT *createInfo, XrSceneObserverMSFT *sceneObserver) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateSession(XrInstance instance, const XrSessionCreateInfo *createInfo, XrSession *session);
|
||||
XrResult WINAPI wine_xrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, const XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT *spatialAnchorCreateInfo, XrSpatialAnchorMSFT *spatialAnchor) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateSpatialAnchorMSFT(XrSession session, const XrSpatialAnchorCreateInfoMSFT *createInfo, XrSpatialAnchorMSFT *anchor) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, XrSpatialAnchorStoreConnectionMSFT *spatialAnchorStore) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateSwapchain(XrSession session, const XrSwapchainCreateInfo *createInfo, XrSwapchain *swapchain);
|
||||
XrResult WINAPI wine_xrCreateVulkanDeviceKHR(XrInstance instance, const XrVulkanDeviceCreateInfoKHR *createInfo, VkDevice *vulkanDevice, VkResult *vulkanResult) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrCreateVulkanInstanceKHR(XrInstance instance, const XrVulkanInstanceCreateInfoKHR *createInfo, VkInstance *vulkanInstance, VkResult *vulkanResult) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrDestroyFoveationProfileFB(XrFoveationProfileFB profile) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrDestroyHandTrackerEXT(XrHandTrackerEXT handTracker) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrDestroyInstance(XrInstance instance);
|
||||
XrResult WINAPI wine_xrDestroySceneMSFT(XrSceneMSFT scene) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrDestroySceneObserverMSFT(XrSceneObserverMSFT sceneObserver) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrDestroySession(XrSession session);
|
||||
XrResult WINAPI wine_xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrDestroySpatialAnchorStoreConnectionMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) DECLSPEC_HIDDEN;
|
||||
XrResult WINAPI wine_xrDestroySwapchain(XrSwapchain swapchain);
|
||||
XrResult WINAPI wine_xrEndFrame(XrSession session, const XrFrameEndInfo *frameEndInfo);
|
||||
XrResult WINAPI wine_xrEnumerateInstanceExtensionProperties(const char *layerName, uint32_t propertyCapacityInput, uint32_t *propertyCountOutput, XrExtensionProperties *properties);
|
||||
@@ -79,18 +84,22 @@ struct openxr_instance_funcs
|
||||
XrResult (*p_xrAttachSessionActionSets)(XrSession, const XrSessionActionSetsAttachInfo *);
|
||||
XrResult (*p_xrBeginFrame)(XrSession, const XrFrameBeginInfo *);
|
||||
XrResult (*p_xrBeginSession)(XrSession, const XrSessionBeginInfo *);
|
||||
XrResult (*p_xrClearSpatialAnchorStoreMSFT)(XrSpatialAnchorStoreConnectionMSFT);
|
||||
XrResult (*p_xrComputeNewSceneMSFT)(XrSceneObserverMSFT, const XrNewSceneComputeInfoMSFT *);
|
||||
XrResult (*p_xrCreateAction)(XrActionSet, const XrActionCreateInfo *, XrAction *);
|
||||
XrResult (*p_xrCreateActionSet)(XrInstance, const XrActionSetCreateInfo *, XrActionSet *);
|
||||
XrResult (*p_xrCreateActionSpace)(XrSession, const XrActionSpaceCreateInfo *, XrSpace *);
|
||||
XrResult (*p_xrCreateFoveationProfileFB)(XrSession, const XrFoveationProfileCreateInfoFB *, XrFoveationProfileFB *);
|
||||
XrResult (*p_xrCreateHandMeshSpaceMSFT)(XrHandTrackerEXT, const XrHandMeshSpaceCreateInfoMSFT *, XrSpace *);
|
||||
XrResult (*p_xrCreateHandTrackerEXT)(XrSession, const XrHandTrackerCreateInfoEXT *, XrHandTrackerEXT *);
|
||||
XrResult (*p_xrCreateReferenceSpace)(XrSession, const XrReferenceSpaceCreateInfo *, XrSpace *);
|
||||
XrResult (*p_xrCreateSceneMSFT)(XrSceneObserverMSFT, const XrSceneCreateInfoMSFT *, XrSceneMSFT *);
|
||||
XrResult (*p_xrCreateSceneObserverMSFT)(XrSession, const XrSceneObserverCreateInfoMSFT *, XrSceneObserverMSFT *);
|
||||
XrResult (*p_xrCreateSession)(XrInstance, const XrSessionCreateInfo *, XrSession *);
|
||||
XrResult (*p_xrCreateSpatialAnchorFromPersistedNameMSFT)(XrSession, const XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT *, XrSpatialAnchorMSFT *);
|
||||
XrResult (*p_xrCreateSpatialAnchorMSFT)(XrSession, const XrSpatialAnchorCreateInfoMSFT *, XrSpatialAnchorMSFT *);
|
||||
XrResult (*p_xrCreateSpatialAnchorSpaceMSFT)(XrSession, const XrSpatialAnchorSpaceCreateInfoMSFT *, XrSpace *);
|
||||
XrResult (*p_xrCreateSpatialAnchorStoreConnectionMSFT)(XrSession, XrSpatialAnchorStoreConnectionMSFT *);
|
||||
XrResult (*p_xrCreateSpatialGraphNodeSpaceMSFT)(XrSession, const XrSpatialGraphNodeSpaceCreateInfoMSFT *, XrSpace *);
|
||||
XrResult (*p_xrCreateSwapchain)(XrSession, const XrSwapchainCreateInfo *, XrSwapchain *);
|
||||
XrResult (*p_xrCreateVulkanDeviceKHR)(XrInstance, const XrVulkanDeviceCreateInfoKHR *, VkDevice *, VkResult *);
|
||||
@@ -98,12 +107,14 @@ struct openxr_instance_funcs
|
||||
XrResult (*p_xrDeserializeSceneMSFT)(XrSceneObserverMSFT, const XrSceneDeserializeInfoMSFT *);
|
||||
XrResult (*p_xrDestroyAction)(XrAction);
|
||||
XrResult (*p_xrDestroyActionSet)(XrActionSet);
|
||||
XrResult (*p_xrDestroyFoveationProfileFB)(XrFoveationProfileFB);
|
||||
XrResult (*p_xrDestroyHandTrackerEXT)(XrHandTrackerEXT);
|
||||
XrResult (*p_xrDestroySceneMSFT)(XrSceneMSFT);
|
||||
XrResult (*p_xrDestroySceneObserverMSFT)(XrSceneObserverMSFT);
|
||||
XrResult (*p_xrDestroySession)(XrSession);
|
||||
XrResult (*p_xrDestroySpace)(XrSpace);
|
||||
XrResult (*p_xrDestroySpatialAnchorMSFT)(XrSpatialAnchorMSFT);
|
||||
XrResult (*p_xrDestroySpatialAnchorStoreConnectionMSFT)(XrSpatialAnchorStoreConnectionMSFT);
|
||||
XrResult (*p_xrDestroySwapchain)(XrSwapchain);
|
||||
XrResult (*p_xrEndFrame)(XrSession, const XrFrameEndInfo *);
|
||||
XrResult (*p_xrEndSession)(XrSession);
|
||||
@@ -112,6 +123,7 @@ struct openxr_instance_funcs
|
||||
XrResult (*p_xrEnumerateColorSpacesFB)(XrSession, uint32_t, uint32_t *, XrColorSpaceFB *);
|
||||
XrResult (*p_xrEnumerateDisplayRefreshRatesFB)(XrSession, uint32_t, uint32_t *, float *);
|
||||
XrResult (*p_xrEnumerateEnvironmentBlendModes)(XrInstance, XrSystemId, XrViewConfigurationType, uint32_t, uint32_t *, XrEnvironmentBlendMode *);
|
||||
XrResult (*p_xrEnumeratePersistedSpatialAnchorNamesMSFT)(XrSpatialAnchorStoreConnectionMSFT, uint32_t, uint32_t *, XrSpatialAnchorPersistenceNameMSFT *);
|
||||
XrResult (*p_xrEnumerateReferenceSpaces)(XrSession, uint32_t, uint32_t *, XrReferenceSpaceType *);
|
||||
XrResult (*p_xrEnumerateReprojectionModesMSFT)(XrInstance, XrSystemId, XrViewConfigurationType, uint32_t, uint32_t *, XrReprojectionModeMSFT *);
|
||||
XrResult (*p_xrEnumerateSceneComputeFeaturesMSFT)(XrInstance, XrSystemId, uint32_t, uint32_t *, XrSceneComputeFeatureMSFT *);
|
||||
@@ -160,6 +172,7 @@ struct openxr_instance_funcs
|
||||
XrResult (*p_xrLocateViews)(XrSession, const XrViewLocateInfo *, XrViewState *, uint32_t, uint32_t *, XrView *);
|
||||
XrResult (*p_xrPathToString)(XrInstance, XrPath, uint32_t, uint32_t *, char *);
|
||||
XrResult (*p_xrPerfSettingsSetPerformanceLevelEXT)(XrSession, XrPerfSettingsDomainEXT, XrPerfSettingsLevelEXT);
|
||||
XrResult (*p_xrPersistSpatialAnchorMSFT)(XrSpatialAnchorStoreConnectionMSFT, const XrSpatialAnchorPersistenceInfoMSFT *);
|
||||
XrResult (*p_xrPollEvent)(XrInstance, XrEventDataBuffer *);
|
||||
XrResult (*p_xrReleaseSwapchainImage)(XrSwapchain, const XrSwapchainImageReleaseInfo *);
|
||||
XrResult (*p_xrRequestDisplayRefreshRateFB)(XrSession, float);
|
||||
@@ -178,6 +191,7 @@ struct openxr_instance_funcs
|
||||
XrResult (*p_xrSuggestInteractionProfileBindings)(XrInstance, const XrInteractionProfileSuggestedBinding *);
|
||||
XrResult (*p_xrSyncActions)(XrSession, const XrActionsSyncInfo *);
|
||||
XrResult (*p_xrThermalGetTemperatureTrendEXT)(XrSession, XrPerfSettingsDomainEXT, XrPerfSettingsNotificationLevelEXT *, float *, float *);
|
||||
XrResult (*p_xrUnpersistSpatialAnchorMSFT)(XrSpatialAnchorStoreConnectionMSFT, const XrSpatialAnchorPersistenceNameMSFT *);
|
||||
XrResult (*p_xrUpdateHandMeshMSFT)(XrHandTrackerEXT, const XrHandMeshUpdateInfoMSFT *, XrHandMeshMSFT *);
|
||||
XrResult (*p_xrUpdateSwapchainFB)(XrSwapchain, const XrSwapchainStateBaseHeaderFB *);
|
||||
XrResult (*p_xrWaitFrame)(XrSession, const XrFrameWaitInfo *, XrFrameState *);
|
||||
@@ -190,18 +204,22 @@ struct openxr_instance_funcs
|
||||
USE_XR_FUNC(xrAttachSessionActionSets) \
|
||||
USE_XR_FUNC(xrBeginFrame) \
|
||||
USE_XR_FUNC(xrBeginSession) \
|
||||
USE_XR_FUNC(xrClearSpatialAnchorStoreMSFT) \
|
||||
USE_XR_FUNC(xrComputeNewSceneMSFT) \
|
||||
USE_XR_FUNC(xrCreateAction) \
|
||||
USE_XR_FUNC(xrCreateActionSet) \
|
||||
USE_XR_FUNC(xrCreateActionSpace) \
|
||||
USE_XR_FUNC(xrCreateFoveationProfileFB) \
|
||||
USE_XR_FUNC(xrCreateHandMeshSpaceMSFT) \
|
||||
USE_XR_FUNC(xrCreateHandTrackerEXT) \
|
||||
USE_XR_FUNC(xrCreateReferenceSpace) \
|
||||
USE_XR_FUNC(xrCreateSceneMSFT) \
|
||||
USE_XR_FUNC(xrCreateSceneObserverMSFT) \
|
||||
USE_XR_FUNC(xrCreateSession) \
|
||||
USE_XR_FUNC(xrCreateSpatialAnchorFromPersistedNameMSFT) \
|
||||
USE_XR_FUNC(xrCreateSpatialAnchorMSFT) \
|
||||
USE_XR_FUNC(xrCreateSpatialAnchorSpaceMSFT) \
|
||||
USE_XR_FUNC(xrCreateSpatialAnchorStoreConnectionMSFT) \
|
||||
USE_XR_FUNC(xrCreateSpatialGraphNodeSpaceMSFT) \
|
||||
USE_XR_FUNC(xrCreateSwapchain) \
|
||||
USE_XR_FUNC(xrCreateVulkanDeviceKHR) \
|
||||
@@ -209,12 +227,14 @@ struct openxr_instance_funcs
|
||||
USE_XR_FUNC(xrDeserializeSceneMSFT) \
|
||||
USE_XR_FUNC(xrDestroyAction) \
|
||||
USE_XR_FUNC(xrDestroyActionSet) \
|
||||
USE_XR_FUNC(xrDestroyFoveationProfileFB) \
|
||||
USE_XR_FUNC(xrDestroyHandTrackerEXT) \
|
||||
USE_XR_FUNC(xrDestroySceneMSFT) \
|
||||
USE_XR_FUNC(xrDestroySceneObserverMSFT) \
|
||||
USE_XR_FUNC(xrDestroySession) \
|
||||
USE_XR_FUNC(xrDestroySpace) \
|
||||
USE_XR_FUNC(xrDestroySpatialAnchorMSFT) \
|
||||
USE_XR_FUNC(xrDestroySpatialAnchorStoreConnectionMSFT) \
|
||||
USE_XR_FUNC(xrDestroySwapchain) \
|
||||
USE_XR_FUNC(xrEndFrame) \
|
||||
USE_XR_FUNC(xrEndSession) \
|
||||
@@ -223,6 +243,7 @@ struct openxr_instance_funcs
|
||||
USE_XR_FUNC(xrEnumerateColorSpacesFB) \
|
||||
USE_XR_FUNC(xrEnumerateDisplayRefreshRatesFB) \
|
||||
USE_XR_FUNC(xrEnumerateEnvironmentBlendModes) \
|
||||
USE_XR_FUNC(xrEnumeratePersistedSpatialAnchorNamesMSFT) \
|
||||
USE_XR_FUNC(xrEnumerateReferenceSpaces) \
|
||||
USE_XR_FUNC(xrEnumerateReprojectionModesMSFT) \
|
||||
USE_XR_FUNC(xrEnumerateSceneComputeFeaturesMSFT) \
|
||||
@@ -267,6 +288,7 @@ struct openxr_instance_funcs
|
||||
USE_XR_FUNC(xrLocateViews) \
|
||||
USE_XR_FUNC(xrPathToString) \
|
||||
USE_XR_FUNC(xrPerfSettingsSetPerformanceLevelEXT) \
|
||||
USE_XR_FUNC(xrPersistSpatialAnchorMSFT) \
|
||||
USE_XR_FUNC(xrPollEvent) \
|
||||
USE_XR_FUNC(xrReleaseSwapchainImage) \
|
||||
USE_XR_FUNC(xrRequestDisplayRefreshRateFB) \
|
||||
@@ -285,6 +307,7 @@ struct openxr_instance_funcs
|
||||
USE_XR_FUNC(xrSuggestInteractionProfileBindings) \
|
||||
USE_XR_FUNC(xrSyncActions) \
|
||||
USE_XR_FUNC(xrThermalGetTemperatureTrendEXT) \
|
||||
USE_XR_FUNC(xrUnpersistSpatialAnchorMSFT) \
|
||||
USE_XR_FUNC(xrUpdateHandMeshMSFT) \
|
||||
USE_XR_FUNC(xrUpdateSwapchainFB) \
|
||||
USE_XR_FUNC(xrWaitFrame) \
|
||||
|
||||
+752
-575
File diff suppressed because it is too large
Load Diff
+435
-37
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user