2020-12-30 22:35:28 +03:00
|
|
|
/* Automatically generated from OpenXR xr.xml; DO NOT EDIT!
|
|
|
|
*
|
|
|
|
* This file is generated from OpenXR xr.xml file covered
|
|
|
|
* by the following copyright and permission notice:
|
|
|
|
*
|
2024-04-19 22:08:23 +03:00
|
|
|
* Copyright (c) 2017-2024, The Khronos Group Inc.
|
2020-12-30 22:35:28 +03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
|
|
*
|
|
|
|
* ------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* This file, xr.xml, is the OpenXR API Registry. It is a critically important
|
|
|
|
* and normative part of the OpenXR Specification, including a canonical
|
|
|
|
* machine-readable definition of the API, parameter and member validation
|
|
|
|
* language incorporated into the Specification and reference pages, and other
|
|
|
|
* material which is registered by Khronos, such as tags used by extension and
|
|
|
|
* layer authors. The only authoritative version of xr.xml is the one
|
2021-02-26 14:42:08 +03:00
|
|
|
* maintained in the default branch of the Khronos OpenXR GitHub project.
|
2020-12-30 22:35:28 +03:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
#include "wine/vulkan.h"
|
|
|
|
#include "d3d11.h"
|
|
|
|
#include "d3d12.h"
|
|
|
|
#define WINE_XR_HOST
|
|
|
|
#include "wineopenxr.h"
|
|
|
|
#include "openxr_private.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(openxr);
|
|
|
|
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
2024-04-20 04:11:40 +03:00
|
|
|
static inline void convert_XrKeyboardSpaceCreateInfoFB_win_to_host(const XrKeyboardSpaceCreateInfoFB *in, XrKeyboardSpaceCreateInfoFB_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->type = in->type;
|
|
|
|
out->next = in->next;
|
|
|
|
out->trackedKeyboardId = in->trackedKeyboardId;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_XrMarkerSpaceCreateInfoVARJO_win_to_host(const XrMarkerSpaceCreateInfoVARJO *in, XrMarkerSpaceCreateInfoVARJO_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->type = in->type;
|
|
|
|
out->next = in->next;
|
|
|
|
out->markerId = in->markerId;
|
|
|
|
out->poseInMarkerSpace = in->poseInMarkerSpace;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static inline XrPlaneDetectorLocationEXT_host *convert_XrPlaneDetectorLocationEXT_array_win_to_host(const XrPlaneDetectorLocationEXT *in, uint32_t count)
|
|
|
|
{
|
|
|
|
XrPlaneDetectorLocationEXT_host *out;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
if (!in) return NULL;
|
|
|
|
|
|
|
|
out = HeapAlloc(GetProcessHeap(), 0, count * sizeof(*out));
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
out[i].type = in[i].type;
|
|
|
|
out[i].next = in[i].next;
|
|
|
|
out[i].planeId = in[i].planeId;
|
|
|
|
out[i].locationFlags = in[i].locationFlags;
|
|
|
|
out[i].pose = in[i].pose;
|
|
|
|
out[i].extents = in[i].extents;
|
|
|
|
out[i].orientation = in[i].orientation;
|
|
|
|
out[i].semanticType = in[i].semanticType;
|
|
|
|
out[i].polygonBufferCount = in[i].polygonBufferCount;
|
|
|
|
}
|
|
|
|
|
|
|
|
return out;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_XrPlaneDetectorLocationEXT_array(XrPlaneDetectorLocationEXT_host *in, uint32_t count)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(), 0, in);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void convert_XrPlaneDetectorLocationsEXT_win_to_host(const XrPlaneDetectorLocationsEXT *in, XrPlaneDetectorLocationsEXT_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->type = in->type;
|
|
|
|
out->next = in->next;
|
|
|
|
out->planeLocationCapacityInput = in->planeLocationCapacityInput;
|
|
|
|
out->planeLocationCountOutput = in->planeLocationCountOutput;
|
|
|
|
out->planeLocations = convert_XrPlaneDetectorLocationEXT_array_win_to_host(in->planeLocations, in->planeLocationCapacityInput);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void free_XrPlaneDetectorLocationsEXT(XrPlaneDetectorLocationsEXT_host *in)
|
|
|
|
{
|
|
|
|
free_XrPlaneDetectorLocationEXT_array(in->planeLocations, in->planeLocationCapacityInput);
|
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static inline void convert_XrSceneMeshBuffersGetInfoMSFT_win_to_host(const XrSceneMeshBuffersGetInfoMSFT *in, XrSceneMeshBuffersGetInfoMSFT_host *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->type = in->type;
|
|
|
|
out->next = in->next;
|
|
|
|
out->meshBufferId = in->meshBufferId;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static inline void convert_XrKeyboardTrackingDescriptionFB_host_to_win(const XrKeyboardTrackingDescriptionFB_host *in, XrKeyboardTrackingDescriptionFB *out)
|
|
|
|
{
|
|
|
|
if (!in) return;
|
|
|
|
|
|
|
|
out->trackedKeyboardId = in->trackedKeyboardId;
|
|
|
|
out->size = in->size;
|
|
|
|
out->flags = in->flags;
|
|
|
|
memcpy(out->name, in->name, XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB * sizeof(char));
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
#endif /* USE_STRUCT_CONVERSION */
|
|
|
|
|
|
|
|
XrResult convert_XrInstanceCreateInfo_struct_chain(const void *next, XrInstanceCreateInfo *out_struct)
|
|
|
|
{
|
|
|
|
XrBaseOutStructure *out_header = (XrBaseOutStructure *)out_struct;
|
|
|
|
const XrBaseInStructure *in_header;
|
|
|
|
|
|
|
|
out_header->next = NULL;
|
|
|
|
|
|
|
|
for (in_header = next; in_header; in_header = in_header->next)
|
|
|
|
{
|
|
|
|
switch (in_header->type)
|
|
|
|
{
|
|
|
|
case XR_TYPE_INSTANCE_CREATE_INFO:
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
WINE_FIXME("Application requested a linked structure of type %u.\n", in_header->type);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return XR_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
void free_XrInstanceCreateInfo_struct_chain(XrInstanceCreateInfo *s)
|
|
|
|
{
|
|
|
|
XrBaseOutStructure *header = (void *)s->next;
|
|
|
|
|
|
|
|
while (header)
|
|
|
|
{
|
|
|
|
void *prev = header;
|
|
|
|
header = header->next;
|
|
|
|
HeapFree(GetProcessHeap(), 0, prev);
|
|
|
|
}
|
|
|
|
|
|
|
|
s->next = NULL;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrAcquireEnvironmentDepthImageMETA(XrEnvironmentDepthProviderMETA environmentDepthProvider, const XrEnvironmentDepthImageAcquireInfoMETA *acquireInfo, XrEnvironmentDepthImageMETA *environmentDepthImage)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", environmentDepthProvider, acquireInfo, environmentDepthImage);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(environmentDepthProvider))).p_xrAcquireEnvironmentDepthImageMETA(environmentDepthProvider, acquireInfo, environmentDepthImage);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, const XrForceFeedbackCurlApplyLocationsMNDX *locations)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p\n", handTracker, locations);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(handTracker))).p_xrApplyForceFeedbackCurlMNDX(handTracker, locations);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrApplyFoveationHTC(XrSession session, const XrFoveationApplyInfoHTC *applyInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, applyInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrApplyFoveationHTC(((wine_XrSession *)session)->session, applyInfo);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrApplyHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo, const XrHapticBaseHeader *hapticFeedback)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, hapticActionInfo, hapticFeedback);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrApplyHapticFeedback(((wine_XrSession *)session)->session, hapticActionInfo, hapticFeedback);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrAttachSessionActionSets(XrSession session, const XrSessionActionSetsAttachInfo *attachInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, attachInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrAttachSessionActionSets(((wine_XrSession *)session)->session, attachInfo);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrBeginPlaneDetectionEXT(XrPlaneDetectorEXT planeDetector, const XrPlaneDetectorBeginInfoEXT *beginInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", planeDetector, beginInfo);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(planeDetector))).p_xrBeginPlaneDetectionEXT(planeDetector, beginInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrBeginSession(XrSession session, const XrSessionBeginInfo *beginInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, beginInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrBeginSession(((wine_XrSession *)session)->session, beginInfo);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCancelFutureEXT(XrInstance instance, const XrFutureCancelInfoEXT *cancelInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", instance, cancelInfo);
|
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrCancelFutureEXT(((wine_XrInstance *)instance)->instance, cancelInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrChangeVirtualKeyboardTextContextMETA(XrVirtualKeyboardMETA keyboard, const XrVirtualKeyboardTextContextChangeInfoMETA *changeInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", keyboard, changeInfo);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrChangeVirtualKeyboardTextContextMETA(keyboard, changeInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-08-03 19:53:18 +03:00
|
|
|
static XrResult WINAPI wine_xrClearSpatialAnchorStoreMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-08-03 19:53:18 +03:00
|
|
|
WINE_TRACE("%p\n", spatialAnchorStore);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(spatialAnchorStore))).p_xrClearSpatialAnchorStoreMSFT(spatialAnchorStore);
|
|
|
|
return ret;
|
2021-08-03 19:53:18 +03:00
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, const XrNewSceneComputeInfoMSFT *computeInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p\n", sceneObserver, computeInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(sceneObserver))).p_xrComputeNewSceneMSFT(sceneObserver, computeInfo);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrCreateAction(XrActionSet actionSet, const XrActionCreateInfo *createInfo, XrAction *action)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", actionSet, createInfo, action);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrCreateAction(actionSet, createInfo, action);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrCreateActionSet(XrInstance instance, const XrActionSetCreateInfo *createInfo, XrActionSet *actionSet)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", instance, createInfo, actionSet);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrCreateActionSet(((wine_XrInstance *)instance)->instance, createInfo, actionSet);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrCreateActionSpace(XrSession session, const XrActionSpaceCreateInfo *createInfo, XrSpace *space)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, space);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrCreateActionSpace(((wine_XrSession *)session)->session, createInfo, space);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*space, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateBodyTrackerFB(XrSession session, const XrBodyTrackerCreateInfoFB *createInfo, XrBodyTrackerFB *bodyTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, bodyTracker);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateBodyTrackerFB(((wine_XrSession *)session)->session, createInfo, bodyTracker);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*bodyTracker, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateEnvironmentDepthProviderMETA(XrSession session, const XrEnvironmentDepthProviderCreateInfoMETA *createInfo, XrEnvironmentDepthProviderMETA *environmentDepthProvider)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, environmentDepthProvider);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateEnvironmentDepthProviderMETA(((wine_XrSession *)session)->session, createInfo, environmentDepthProvider);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*environmentDepthProvider, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateEnvironmentDepthSwapchainMETA(XrEnvironmentDepthProviderMETA environmentDepthProvider, const XrEnvironmentDepthSwapchainCreateInfoMETA *createInfo, XrEnvironmentDepthSwapchainMETA *swapchain)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", environmentDepthProvider, createInfo, swapchain);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(environmentDepthProvider))).p_xrCreateEnvironmentDepthSwapchainMETA(environmentDepthProvider, createInfo, swapchain);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*swapchain, &((*get_dispatch_table((uint64_t)(environmentDepthProvider)))));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateExportedLocalizationMapML(XrSession session, const XrUuidEXT *mapUuid, XrExportedLocalizationMapML *map)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, mapUuid, map);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateExportedLocalizationMapML(((wine_XrSession *)session)->session, mapUuid, map);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*map, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateEyeTrackerFB(XrSession session, const XrEyeTrackerCreateInfoFB *createInfo, XrEyeTrackerFB *eyeTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, eyeTracker);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateEyeTrackerFB(((wine_XrSession *)session)->session, createInfo, eyeTracker);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*eyeTracker, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateFaceTracker2FB(XrSession session, const XrFaceTrackerCreateInfo2FB *createInfo, XrFaceTracker2FB *faceTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, faceTracker);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateFaceTracker2FB(((wine_XrSession *)session)->session, createInfo, faceTracker);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*faceTracker, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateFaceTrackerFB(XrSession session, const XrFaceTrackerCreateInfoFB *createInfo, XrFaceTrackerFB *faceTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, faceTracker);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateFaceTrackerFB(((wine_XrSession *)session)->session, createInfo, faceTracker);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*faceTracker, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateFacialTrackerHTC(XrSession session, const XrFacialTrackerCreateInfoHTC *createInfo, XrFacialTrackerHTC *facialTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, facialTracker);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateFacialTrackerHTC(((wine_XrSession *)session)->session, createInfo, facialTracker);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*facialTracker, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateFoveationProfileFB(XrSession session, const XrFoveationProfileCreateInfoFB *createInfo, XrFoveationProfileFB *profile)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, profile);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateFoveationProfileFB(((wine_XrSession *)session)->session, createInfo, profile);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*profile, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateGeometryInstanceFB(XrSession session, const XrGeometryInstanceCreateInfoFB *createInfo, XrGeometryInstanceFB *outGeometryInstance)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, outGeometryInstance);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateGeometryInstanceFB(((wine_XrSession *)session)->session, createInfo, outGeometryInstance);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*outGeometryInstance, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, const XrHandMeshSpaceCreateInfoMSFT *createInfo, XrSpace *space)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", handTracker, createInfo, space);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(handTracker))).p_xrCreateHandMeshSpaceMSFT(handTracker, createInfo, space);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*space, &((*get_dispatch_table((uint64_t)(handTracker)))));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateHandTrackerEXT(XrSession session, const XrHandTrackerCreateInfoEXT *createInfo, XrHandTrackerEXT *handTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, handTracker);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateHandTrackerEXT(((wine_XrSession *)session)->session, createInfo, handTracker);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*handTracker, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateKeyboardSpaceFB(XrSession session, const XrKeyboardSpaceCreateInfoFB *createInfo, XrSpace *keyboardSpace)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
XrResult result;
|
|
|
|
XrKeyboardSpaceCreateInfoFB_host createInfo_host;
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, keyboardSpace);
|
|
|
|
|
|
|
|
convert_XrKeyboardSpaceCreateInfoFB_win_to_host(createInfo, &createInfo_host);
|
|
|
|
result = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateKeyboardSpaceFB(((wine_XrSession *)session)->session, &createInfo_host, keyboardSpace);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, keyboardSpace);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateKeyboardSpaceFB(((wine_XrSession *)session)->session, createInfo, keyboardSpace);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*keyboardSpace, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateMarkerDetectorML(XrSession session, const XrMarkerDetectorCreateInfoML *createInfo, XrMarkerDetectorML *markerDetector)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, markerDetector);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateMarkerDetectorML(((wine_XrSession *)session)->session, createInfo, markerDetector);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*markerDetector, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateMarkerSpaceML(XrSession session, const XrMarkerSpaceCreateInfoML *createInfo, XrSpace *space)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, space);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateMarkerSpaceML(((wine_XrSession *)session)->session, createInfo, space);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*space, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateMarkerSpaceVARJO(XrSession session, const XrMarkerSpaceCreateInfoVARJO *createInfo, XrSpace *space)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
XrResult result;
|
|
|
|
XrMarkerSpaceCreateInfoVARJO_host createInfo_host;
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, space);
|
|
|
|
|
|
|
|
convert_XrMarkerSpaceCreateInfoVARJO_win_to_host(createInfo, &createInfo_host);
|
|
|
|
result = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateMarkerSpaceVARJO(((wine_XrSession *)session)->session, &createInfo_host, space);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, space);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateMarkerSpaceVARJO(((wine_XrSession *)session)->session, createInfo, space);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*space, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCreatePassthroughColorLutMETA(XrPassthroughFB passthrough, const XrPassthroughColorLutCreateInfoMETA *createInfo, XrPassthroughColorLutMETA *colorLut)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", passthrough, createInfo, colorLut);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(passthrough))).p_xrCreatePassthroughColorLutMETA(passthrough, createInfo, colorLut);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*colorLut, &((*get_dispatch_table((uint64_t)(passthrough)))));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrCreatePassthroughFB(XrSession session, const XrPassthroughCreateInfoFB *createInfo, XrPassthroughFB *outPassthrough)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, outPassthrough);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreatePassthroughFB(((wine_XrSession *)session)->session, createInfo, outPassthrough);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*outPassthrough, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreatePassthroughHTC(XrSession session, const XrPassthroughCreateInfoHTC *createInfo, XrPassthroughHTC *passthrough)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, passthrough);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreatePassthroughHTC(((wine_XrSession *)session)->session, createInfo, passthrough);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*passthrough, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrCreatePassthroughLayerFB(XrSession session, const XrPassthroughLayerCreateInfoFB *createInfo, XrPassthroughLayerFB *outLayer)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, outLayer);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreatePassthroughLayerFB(((wine_XrSession *)session)->session, createInfo, outLayer);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*outLayer, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCreatePlaneDetectorEXT(XrSession session, const XrPlaneDetectorCreateInfoEXT *createInfo, XrPlaneDetectorEXT *planeDetector)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, planeDetector);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreatePlaneDetectorEXT(((wine_XrSession *)session)->session, createInfo, planeDetector);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*planeDetector, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrCreateReferenceSpace(XrSession session, const XrReferenceSpaceCreateInfo *createInfo, XrSpace *space)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, space);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrCreateReferenceSpace(((wine_XrSession *)session)->session, createInfo, space);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*space, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, const XrSceneCreateInfoMSFT *createInfo, XrSceneMSFT *scene)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", sceneObserver, createInfo, scene);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(sceneObserver))).p_xrCreateSceneMSFT(sceneObserver, createInfo, scene);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*scene, &((*get_dispatch_table((uint64_t)(sceneObserver)))));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateSceneObserverMSFT(XrSession session, const XrSceneObserverCreateInfoMSFT *createInfo, XrSceneObserverMSFT *sceneObserver)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, sceneObserver);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSceneObserverMSFT(((wine_XrSession *)session)->session, createInfo, sceneObserver);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*sceneObserver, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateSpaceUserFB(XrSession session, const XrSpaceUserCreateInfoFB *info, XrSpaceUserFB *user)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, user);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpaceUserFB(((wine_XrSession *)session)->session, info, user);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*user, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateSpatialAnchorFB(XrSession session, const XrSpatialAnchorCreateInfoFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, requestId);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpatialAnchorFB(((wine_XrSession *)session)->session, info, requestId);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, const XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT *spatialAnchorCreateInfo, XrSpatialAnchorMSFT *spatialAnchor)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, spatialAnchorCreateInfo, spatialAnchor);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpatialAnchorFromPersistedNameMSFT(((wine_XrSession *)session)->session, spatialAnchorCreateInfo, spatialAnchor);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*spatialAnchor, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateSpatialAnchorHTC(XrSession session, const XrSpatialAnchorCreateInfoHTC *createInfo, XrSpace *anchor)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, anchor);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpatialAnchorHTC(((wine_XrSession *)session)->session, createInfo, anchor);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*anchor, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateSpatialAnchorMSFT(XrSession session, const XrSpatialAnchorCreateInfoMSFT *createInfo, XrSpatialAnchorMSFT *anchor)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, anchor);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpatialAnchorMSFT(((wine_XrSession *)session)->session, createInfo, anchor);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*anchor, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateSpatialAnchorSpaceMSFT(XrSession session, const XrSpatialAnchorSpaceCreateInfoMSFT *createInfo, XrSpace *space)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, space);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpatialAnchorSpaceMSFT(((wine_XrSession *)session)->session, createInfo, space);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*space, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, XrSpatialAnchorStoreConnectionMSFT *spatialAnchorStore)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", session, spatialAnchorStore);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpatialAnchorStoreConnectionMSFT(((wine_XrSession *)session)->session, spatialAnchorStore);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*spatialAnchorStore, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateSpatialGraphNodeSpaceMSFT(XrSession session, const XrSpatialGraphNodeSpaceCreateInfoMSFT *createInfo, XrSpace *space)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, space);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateSpatialGraphNodeSpaceMSFT(((wine_XrSession *)session)->session, createInfo, space);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*space, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateTriangleMeshFB(XrSession session, const XrTriangleMeshCreateInfoFB *createInfo, XrTriangleMeshFB *outTriangleMesh)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, outTriangleMesh);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateTriangleMeshFB(((wine_XrSession *)session)->session, createInfo, outTriangleMesh);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*outTriangleMesh, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrCreateVirtualKeyboardMETA(XrSession session, const XrVirtualKeyboardCreateInfoMETA *createInfo, XrVirtualKeyboardMETA *keyboard)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, keyboard);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateVirtualKeyboardMETA(((wine_XrSession *)session)->session, createInfo, keyboard);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*keyboard, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrCreateVirtualKeyboardSpaceMETA(XrSession session, XrVirtualKeyboardMETA keyboard, const XrVirtualKeyboardSpaceCreateInfoMETA *createInfo, XrSpace *keyboardSpace)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p, %p\n", session, keyboard, createInfo, keyboardSpace);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrCreateVirtualKeyboardSpaceMETA(((wine_XrSession *)session)->session, keyboard, createInfo, keyboardSpace);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*keyboardSpace, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, const XrSceneDeserializeInfoMSFT *deserializeInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p\n", sceneObserver, deserializeInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(sceneObserver))).p_xrDeserializeSceneMSFT(sceneObserver, deserializeInfo);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrDestroyAction(XrAction action)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p\n", action);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrDestroyAction(action);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrDestroyActionSet(XrActionSet actionSet)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p\n", actionSet);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrDestroyActionSet(actionSet);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyBodyTrackerFB(XrBodyTrackerFB bodyTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", bodyTracker);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(bodyTracker))).p_xrDestroyBodyTrackerFB(bodyTracker);
|
|
|
|
unregister_dispatchable_handle((uint64_t)bodyTracker);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyEnvironmentDepthProviderMETA(XrEnvironmentDepthProviderMETA environmentDepthProvider)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", environmentDepthProvider);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(environmentDepthProvider))).p_xrDestroyEnvironmentDepthProviderMETA(environmentDepthProvider);
|
|
|
|
unregister_dispatchable_handle((uint64_t)environmentDepthProvider);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroyEnvironmentDepthSwapchainMETA(XrEnvironmentDepthSwapchainMETA swapchain)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", swapchain);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(swapchain))).p_xrDestroyEnvironmentDepthSwapchainMETA(swapchain);
|
|
|
|
unregister_dispatchable_handle((uint64_t)swapchain);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroyExportedLocalizationMapML(XrExportedLocalizationMapML map)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", map);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(map))).p_xrDestroyExportedLocalizationMapML(map);
|
|
|
|
unregister_dispatchable_handle((uint64_t)map);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyEyeTrackerFB(XrEyeTrackerFB eyeTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", eyeTracker);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(eyeTracker))).p_xrDestroyEyeTrackerFB(eyeTracker);
|
|
|
|
unregister_dispatchable_handle((uint64_t)eyeTracker);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyFaceTracker2FB(XrFaceTracker2FB faceTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", faceTracker);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(faceTracker))).p_xrDestroyFaceTracker2FB(faceTracker);
|
|
|
|
unregister_dispatchable_handle((uint64_t)faceTracker);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyFaceTrackerFB(XrFaceTrackerFB faceTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", faceTracker);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(faceTracker))).p_xrDestroyFaceTrackerFB(faceTracker);
|
|
|
|
unregister_dispatchable_handle((uint64_t)faceTracker);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroyFacialTrackerHTC(XrFacialTrackerHTC facialTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", facialTracker);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(facialTracker))).p_xrDestroyFacialTrackerHTC(facialTracker);
|
|
|
|
unregister_dispatchable_handle((uint64_t)facialTracker);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyFoveationProfileFB(XrFoveationProfileFB profile)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", profile);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(profile))).p_xrDestroyFoveationProfileFB(profile);
|
|
|
|
unregister_dispatchable_handle((uint64_t)profile);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroyGeometryInstanceFB(XrGeometryInstanceFB instance)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", instance);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(instance))).p_xrDestroyGeometryInstanceFB(instance);
|
|
|
|
unregister_dispatchable_handle((uint64_t)instance);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroyHandTrackerEXT(XrHandTrackerEXT handTracker)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", handTracker);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(handTracker))).p_xrDestroyHandTrackerEXT(handTracker);
|
|
|
|
unregister_dispatchable_handle((uint64_t)handTracker);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyMarkerDetectorML(XrMarkerDetectorML markerDetector)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", markerDetector);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrDestroyMarkerDetectorML(markerDetector);
|
|
|
|
unregister_dispatchable_handle((uint64_t)markerDetector);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroyPassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", colorLut);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(colorLut))).p_xrDestroyPassthroughColorLutMETA(colorLut);
|
|
|
|
unregister_dispatchable_handle((uint64_t)colorLut);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyPassthroughFB(XrPassthroughFB passthrough)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", passthrough);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(passthrough))).p_xrDestroyPassthroughFB(passthrough);
|
|
|
|
unregister_dispatchable_handle((uint64_t)passthrough);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyPassthroughHTC(XrPassthroughHTC passthrough)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", passthrough);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(passthrough))).p_xrDestroyPassthroughHTC(passthrough);
|
|
|
|
unregister_dispatchable_handle((uint64_t)passthrough);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyPassthroughLayerFB(XrPassthroughLayerFB layer)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", layer);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(layer))).p_xrDestroyPassthroughLayerFB(layer);
|
|
|
|
unregister_dispatchable_handle((uint64_t)layer);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyPlaneDetectorEXT(XrPlaneDetectorEXT planeDetector)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", planeDetector);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(planeDetector))).p_xrDestroyPlaneDetectorEXT(planeDetector);
|
|
|
|
unregister_dispatchable_handle((uint64_t)planeDetector);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroySceneMSFT(XrSceneMSFT scene)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", scene);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(scene))).p_xrDestroySceneMSFT(scene);
|
|
|
|
unregister_dispatchable_handle((uint64_t)scene);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroySceneObserverMSFT(XrSceneObserverMSFT sceneObserver)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", sceneObserver);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(sceneObserver))).p_xrDestroySceneObserverMSFT(sceneObserver);
|
|
|
|
unregister_dispatchable_handle((uint64_t)sceneObserver);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrDestroySpace(XrSpace space)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p\n", space);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrDestroySpace(space);
|
|
|
|
unregister_dispatchable_handle((uint64_t)space);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroySpaceUserFB(XrSpaceUserFB user)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", user);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(user))).p_xrDestroySpaceUserFB(user);
|
|
|
|
unregister_dispatchable_handle((uint64_t)user);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", anchor);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(anchor))).p_xrDestroySpatialAnchorMSFT(anchor);
|
|
|
|
unregister_dispatchable_handle((uint64_t)anchor);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrDestroySpatialAnchorStoreConnectionMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", spatialAnchorStore);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(spatialAnchorStore))).p_xrDestroySpatialAnchorStoreConnectionMSFT(spatialAnchorStore);
|
|
|
|
unregister_dispatchable_handle((uint64_t)spatialAnchorStore);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroySpatialGraphNodeBindingMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", nodeBinding);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(nodeBinding))).p_xrDestroySpatialGraphNodeBindingMSFT(nodeBinding);
|
|
|
|
unregister_dispatchable_handle((uint64_t)nodeBinding);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:25:34 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyTriangleMeshFB(XrTriangleMeshFB mesh)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", mesh);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(mesh))).p_xrDestroyTriangleMeshFB(mesh);
|
|
|
|
unregister_dispatchable_handle((uint64_t)mesh);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrDestroyVirtualKeyboardMETA(XrVirtualKeyboardMETA keyboard)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", keyboard);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrDestroyVirtualKeyboardMETA(keyboard);
|
|
|
|
unregister_dispatchable_handle((uint64_t)keyboard);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrEnableLocalizationEventsML(XrSession session, const XrLocalizationEnableEventsInfoML *info)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", session, info);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrEnableLocalizationEventsML(((wine_XrSession *)session)->session, info);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrEnableUserCalibrationEventsML(XrInstance instance, const XrUserCalibrationEnableEventsInfoML *enableInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", instance, enableInfo);
|
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrEnableUserCalibrationEventsML(((wine_XrInstance *)instance)->instance, enableInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrEndSession(XrSession session)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p\n", session);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrEndSession(((wine_XrSession *)session)->session);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrEnumerateApiLayerProperties(uint32_t propertyCapacityInput, uint32_t *propertyCountOutput, XrApiLayerProperties *properties)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%u, %p, %p\n", propertyCapacityInput, propertyCountOutput, properties);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrEnumerateApiLayerProperties(propertyCapacityInput, propertyCountOutput, properties);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrEnumerateBoundSourcesForAction(XrSession session, const XrBoundSourcesForActionEnumerateInfo *enumerateInfo, uint32_t sourceCapacityInput, uint32_t *sourceCountOutput, XrPath *sources)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %u, %p, %p\n", session, enumerateInfo, sourceCapacityInput, sourceCountOutput, sources);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrEnumerateBoundSourcesForAction(((wine_XrSession *)session)->session, enumerateInfo, sourceCapacityInput, sourceCountOutput, sources);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumerateColorSpacesFB(XrSession session, uint32_t colorSpaceCapacityInput, uint32_t *colorSpaceCountOutput, XrColorSpaceFB *colorSpaces)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", session, colorSpaceCapacityInput, colorSpaceCountOutput, colorSpaces);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrEnumerateColorSpacesFB(((wine_XrSession *)session)->session, colorSpaceCapacityInput, colorSpaceCountOutput, colorSpaces);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrEnumerateDisplayRefreshRatesFB(XrSession session, uint32_t displayRefreshRateCapacityInput, uint32_t *displayRefreshRateCountOutput, float *displayRefreshRates)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", session, displayRefreshRateCapacityInput, displayRefreshRateCountOutput, displayRefreshRates);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrEnumerateDisplayRefreshRatesFB(((wine_XrSession *)session)->session, displayRefreshRateCapacityInput, displayRefreshRateCountOutput, displayRefreshRates);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrEnumerateEnvironmentBlendModes(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, uint32_t environmentBlendModeCapacityInput, uint32_t *environmentBlendModeCountOutput, XrEnvironmentBlendMode *environmentBlendModes)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %#x, %u, %p, %p\n", instance, wine_dbgstr_longlong(systemId), viewConfigurationType, environmentBlendModeCapacityInput, environmentBlendModeCountOutput, environmentBlendModes);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrEnumerateEnvironmentBlendModes(((wine_XrInstance *)instance)->instance, systemId, viewConfigurationType, environmentBlendModeCapacityInput, environmentBlendModeCountOutput, environmentBlendModes);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumerateEnvironmentDepthSwapchainImagesMETA(XrEnvironmentDepthSwapchainMETA swapchain, uint32_t imageCapacityInput, uint32_t *imageCountOutput, XrSwapchainImageBaseHeader *images)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", swapchain, imageCapacityInput, imageCountOutput, images);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(swapchain))).p_xrEnumerateEnvironmentDepthSwapchainImagesMETA(swapchain, imageCapacityInput, imageCountOutput, images);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumerateExternalCamerasOCULUS(XrSession session, uint32_t cameraCapacityInput, uint32_t *cameraCountOutput, XrExternalCameraOCULUS *cameras)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", session, cameraCapacityInput, cameraCountOutput, cameras);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrEnumerateExternalCamerasOCULUS(((wine_XrSession *)session)->session, cameraCapacityInput, cameraCountOutput, cameras);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, uint32_t counterPathCapacityInput, uint32_t *counterPathCountOutput, XrPath *counterPaths)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", instance, counterPathCapacityInput, counterPathCountOutput, counterPaths);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrEnumeratePerformanceMetricsCounterPathsMETA(((wine_XrInstance *)instance)->instance, counterPathCapacityInput, counterPathCountOutput, counterPaths);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, uint32_t spatialAnchorNameCapacityInput, uint32_t *spatialAnchorNameCountOutput, XrSpatialAnchorPersistenceNameMSFT *spatialAnchorNames)
|
2021-08-03 19:53:18 +03:00
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", spatialAnchorStore, spatialAnchorNameCapacityInput, spatialAnchorNameCountOutput, spatialAnchorNames);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(spatialAnchorStore))).p_xrEnumeratePersistedSpatialAnchorNamesMSFT(spatialAnchorStore, spatialAnchorNameCapacityInput, spatialAnchorNameCountOutput, spatialAnchorNames);
|
2024-04-20 04:25:34 +03:00
|
|
|
return ret;
|
2021-08-03 19:53:18 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrEnumerateReferenceSpaces(XrSession session, uint32_t spaceCapacityInput, uint32_t *spaceCountOutput, XrReferenceSpaceType *spaces)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", session, spaceCapacityInput, spaceCountOutput, spaces);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrEnumerateReferenceSpaces(((wine_XrSession *)session)->session, spaceCapacityInput, spaceCountOutput, spaces);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumerateRenderModelPathsFB(XrSession session, uint32_t pathCapacityInput, uint32_t *pathCountOutput, XrRenderModelPathInfoFB *paths)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", session, pathCapacityInput, pathCountOutput, paths);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrEnumerateRenderModelPathsFB(((wine_XrSession *)session)->session, pathCapacityInput, pathCountOutput, paths);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumerateReprojectionModesMSFT(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, uint32_t modeCapacityInput, uint32_t *modeCountOutput, XrReprojectionModeMSFT *modes)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %#x, %u, %p, %p\n", instance, wine_dbgstr_longlong(systemId), viewConfigurationType, modeCapacityInput, modeCountOutput, modes);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrEnumerateReprojectionModesMSFT(((wine_XrInstance *)instance)->instance, systemId, viewConfigurationType, modeCapacityInput, modeCountOutput, modes);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, XrSystemId systemId, uint32_t featureCapacityInput, uint32_t *featureCountOutput, XrSceneComputeFeatureMSFT *features)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %u, %p, %p\n", instance, wine_dbgstr_longlong(systemId), featureCapacityInput, featureCountOutput, features);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrEnumerateSceneComputeFeaturesMSFT(((wine_XrInstance *)instance)->instance, systemId, featureCapacityInput, featureCountOutput, features);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumerateSpaceSupportedComponentsFB(XrSpace space, uint32_t componentTypeCapacityInput, uint32_t *componentTypeCountOutput, XrSpaceComponentTypeFB *componentTypes)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", space, componentTypeCapacityInput, componentTypeCountOutput, componentTypes);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(space))).p_xrEnumerateSpaceSupportedComponentsFB(space, componentTypeCapacityInput, componentTypeCountOutput, componentTypes);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrEnumerateViewConfigurationViews(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, uint32_t viewCapacityInput, uint32_t *viewCountOutput, XrViewConfigurationView *views)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %#x, %u, %p, %p\n", instance, wine_dbgstr_longlong(systemId), viewConfigurationType, viewCapacityInput, viewCountOutput, views);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrEnumerateViewConfigurationViews(((wine_XrInstance *)instance)->instance, systemId, viewConfigurationType, viewCapacityInput, viewCountOutput, views);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrEnumerateViewConfigurations(XrInstance instance, XrSystemId systemId, uint32_t viewConfigurationTypeCapacityInput, uint32_t *viewConfigurationTypeCountOutput, XrViewConfigurationType *viewConfigurationTypes)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %u, %p, %p\n", instance, wine_dbgstr_longlong(systemId), viewConfigurationTypeCapacityInput, viewConfigurationTypeCountOutput, viewConfigurationTypes);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrEnumerateViewConfigurations(((wine_XrInstance *)instance)->instance, systemId, viewConfigurationTypeCapacityInput, viewConfigurationTypeCountOutput, viewConfigurationTypes);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
static XrResult WINAPI wine_xrEnumerateViveTrackerPathsHTCX(XrInstance instance, uint32_t pathCapacityInput, uint32_t *pathCountOutput, XrViveTrackerPathsHTCX *paths)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", instance, pathCapacityInput, pathCountOutput, paths);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrEnumerateViveTrackerPathsHTCX(((wine_XrInstance *)instance)->instance, pathCapacityInput, pathCountOutput, paths);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrEraseSpaceFB(XrSession session, const XrSpaceEraseInfoFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, requestId);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrEraseSpaceFB(((wine_XrSession *)session)->session, info, requestId);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
static XrResult WINAPI wine_xrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, const XrGeometryInstanceTransformFB *transformation)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %p\n", instance, transformation);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(instance))).p_xrGeometryInstanceSetTransformFB(instance, transformation);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrGetActionStateBoolean(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateBoolean *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, getInfo, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetActionStateBoolean(((wine_XrSession *)session)->session, getInfo, state);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrGetActionStateFloat(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateFloat *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, getInfo, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetActionStateFloat(((wine_XrSession *)session)->session, getInfo, state);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrGetActionStatePose(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStatePose *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, getInfo, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetActionStatePose(((wine_XrSession *)session)->session, getInfo, state);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrGetActionStateVector2f(XrSession session, const XrActionStateGetInfo *getInfo, XrActionStateVector2f *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, getInfo, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetActionStateVector2f(((wine_XrSession *)session)->session, getInfo, state);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrGetAudioInputDeviceGuidOculus(XrInstance instance, wchar_t buffer[])
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p\n", instance, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrGetAudioInputDeviceGuidOculus(((wine_XrInstance *)instance)->instance, buffer);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetAudioOutputDeviceGuidOculus(XrInstance instance, wchar_t buffer[])
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p\n", instance, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrGetAudioOutputDeviceGuidOculus(((wine_XrInstance *)instance)->instance, buffer);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, XrBodySkeletonFB *skeleton)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", bodyTracker, skeleton);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(bodyTracker))).p_xrGetBodySkeletonFB(bodyTracker, skeleton);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
static XrResult WINAPI wine_xrGetControllerModelKeyMSFT(XrSession session, XrPath topLevelUserPath, XrControllerModelKeyStateMSFT *controllerModelKeyState)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(topLevelUserPath), controllerModelKeyState);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetControllerModelKeyMSFT(((wine_XrSession *)session)->session, topLevelUserPath, controllerModelKeyState);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetControllerModelPropertiesMSFT(XrSession session, XrControllerModelKeyMSFT modelKey, XrControllerModelPropertiesMSFT *properties)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(modelKey), properties);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetControllerModelPropertiesMSFT(((wine_XrSession *)session)->session, modelKey, properties);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetControllerModelStateMSFT(XrSession session, XrControllerModelKeyMSFT modelKey, XrControllerModelStateMSFT *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(modelKey), state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetControllerModelStateMSFT(((wine_XrSession *)session)->session, modelKey, state);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrGetCurrentInteractionProfile(XrSession session, XrPath topLevelUserPath, XrInteractionProfileState *interactionProfile)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(topLevelUserPath), interactionProfile);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetCurrentInteractionProfile(((wine_XrSession *)session)->session, topLevelUserPath, interactionProfile);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrGetDeviceSampleRateFB(XrSession session, const XrHapticActionInfo *hapticActionInfo, XrDevicePcmSampleRateGetInfoFB *deviceSampleRate)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, hapticActionInfo, deviceSampleRate);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetDeviceSampleRateFB(((wine_XrSession *)session)->session, hapticActionInfo, deviceSampleRate);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
static XrResult WINAPI wine_xrGetDisplayRefreshRateFB(XrSession session, float *displayRefreshRate)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, displayRefreshRate);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetDisplayRefreshRateFB(((wine_XrSession *)session)->session, displayRefreshRate);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetEnvironmentDepthSwapchainStateMETA(XrEnvironmentDepthSwapchainMETA swapchain, XrEnvironmentDepthSwapchainStateMETA *state)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", swapchain, state);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(swapchain))).p_xrGetEnvironmentDepthSwapchainStateMETA(swapchain, state);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetExportedLocalizationMapDataML(XrExportedLocalizationMapML map, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", map, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(map))).p_xrGetExportedLocalizationMapDataML(map, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, const XrEyeGazesInfoFB *gazeInfo, XrEyeGazesFB *eyeGazes)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", eyeTracker, gazeInfo, eyeGazes);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(eyeTracker))).p_xrGetEyeGazesFB(eyeTracker, gazeInfo, eyeGazes);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetFaceExpressionWeights2FB(XrFaceTracker2FB faceTracker, const XrFaceExpressionInfo2FB *expressionInfo, XrFaceExpressionWeights2FB *expressionWeights)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", faceTracker, expressionInfo, expressionWeights);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(faceTracker))).p_xrGetFaceExpressionWeights2FB(faceTracker, expressionInfo, expressionWeights);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, const XrFaceExpressionInfoFB *expressionInfo, XrFaceExpressionWeightsFB *expressionWeights)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", faceTracker, expressionInfo, expressionWeights);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(faceTracker))).p_xrGetFaceExpressionWeightsFB(faceTracker, expressionInfo, expressionWeights);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, XrFacialExpressionsHTC *facialExpressions)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", facialTracker, facialExpressions);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(facialTracker))).p_xrGetFacialExpressionsHTC(facialTracker, facialExpressions);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrGetFoveationEyeTrackedStateMETA(XrSession session, XrFoveationEyeTrackedStateMETA *foveationState)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, foveationState);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetFoveationEyeTrackedStateMETA(((wine_XrSession *)session)->session, foveationState);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
static XrResult WINAPI wine_xrGetHandMeshFB(XrHandTrackerEXT handTracker, XrHandTrackingMeshFB *mesh)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %p\n", handTracker, mesh);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(handTracker))).p_xrGetHandMeshFB(handTracker, mesh);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrGetInputSourceLocalizedName(XrSession session, const XrInputSourceLocalizedNameGetInfo *getInfo, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %u, %p, %p\n", session, getInfo, bufferCapacityInput, bufferCountOutput, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetInputSourceLocalizedName(((wine_XrSession *)session)->session, getInfo, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrGetInstanceProperties(XrInstance instance, XrInstanceProperties *instanceProperties)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p\n", instance, instanceProperties);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetInstanceProperties(((wine_XrInstance *)instance)->instance, instanceProperties);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetMarkerDetectorStateML(XrMarkerDetectorML markerDetector, XrMarkerDetectorStateML *state)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", markerDetector, state);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrGetMarkerDetectorStateML(markerDetector, state);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetMarkerLengthML(XrMarkerDetectorML markerDetector, XrMarkerML marker, float *meters)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", markerDetector, wine_dbgstr_longlong(marker), meters);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrGetMarkerLengthML(markerDetector, marker, meters);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetMarkerNumberML(XrMarkerDetectorML markerDetector, XrMarkerML marker, uint64_t *number)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", markerDetector, wine_dbgstr_longlong(marker), number);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrGetMarkerNumberML(markerDetector, marker, number);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetMarkerReprojectionErrorML(XrMarkerDetectorML markerDetector, XrMarkerML marker, float *reprojectionErrorMeters)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", markerDetector, wine_dbgstr_longlong(marker), reprojectionErrorMeters);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrGetMarkerReprojectionErrorML(markerDetector, marker, reprojectionErrorMeters);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrGetMarkerSizeVARJO(XrSession session, uint64_t markerId, XrExtent2Df *size)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(markerId), size);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetMarkerSizeVARJO(((wine_XrSession *)session)->session, markerId, size);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetMarkerStringML(XrMarkerDetectorML markerDetector, XrMarkerML marker, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, %u, %p, %p\n", markerDetector, wine_dbgstr_longlong(marker), bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrGetMarkerStringML(markerDetector, marker, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetMarkersML(XrMarkerDetectorML markerDetector, uint32_t markerCapacityInput, uint32_t *markerCountOutput, XrMarkerML *markers)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", markerDetector, markerCapacityInput, markerCountOutput, markers);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrGetMarkersML(markerDetector, markerCapacityInput, markerCountOutput, markers);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
static XrResult WINAPI wine_xrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsOpenGLKHR *graphicsRequirements)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", instance, wine_dbgstr_longlong(systemId), graphicsRequirements);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrGetOpenGLGraphicsRequirementsKHR(((wine_XrInstance *)instance)->instance, systemId, graphicsRequirements);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetPassthroughPreferencesMETA(XrSession session, XrPassthroughPreferencesMETA *preferences)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", session, preferences);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetPassthroughPreferencesMETA(((wine_XrSession *)session)->session, preferences);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrGetPerformanceMetricsStateMETA(XrSession session, XrPerformanceMetricsStateMETA *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetPerformanceMetricsStateMETA(((wine_XrSession *)session)->session, state);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetPlaneDetectionStateEXT(XrPlaneDetectorEXT planeDetector, XrPlaneDetectionStateEXT *state)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", planeDetector, state);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(planeDetector))).p_xrGetPlaneDetectionStateEXT(planeDetector, state);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetPlaneDetectionsEXT(XrPlaneDetectorEXT planeDetector, const XrPlaneDetectorGetInfoEXT *info, XrPlaneDetectorLocationsEXT *locations)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
XrResult result;
|
|
|
|
XrPlaneDetectorLocationsEXT_host locations_host;
|
|
|
|
WINE_TRACE("%p, %p, %p\n", planeDetector, info, locations);
|
|
|
|
|
|
|
|
convert_XrPlaneDetectorLocationsEXT_win_to_host(locations, &locations_host);
|
|
|
|
result = (*get_dispatch_table((uint64_t)(planeDetector))).p_xrGetPlaneDetectionsEXT(planeDetector, info, &locations_host);
|
|
|
|
|
|
|
|
free_XrPlaneDetectorLocationsEXT(&locations_host);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", planeDetector, info, locations);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(planeDetector))).p_xrGetPlaneDetectionsEXT(planeDetector, info, locations);
|
|
|
|
return ret;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetPlanePolygonBufferEXT(XrPlaneDetectorEXT planeDetector, uint64_t planeId, uint32_t polygonBufferIndex, XrPlaneDetectorPolygonBufferEXT *polygonBuffer)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, %u, %p\n", planeDetector, wine_dbgstr_longlong(planeId), polygonBufferIndex, polygonBuffer);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(planeDetector))).p_xrGetPlanePolygonBufferEXT(planeDetector, planeId, polygonBufferIndex, polygonBuffer);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetRecommendedLayerResolutionMETA(XrSession session, const XrRecommendedLayerResolutionGetInfoMETA *info, XrRecommendedLayerResolutionMETA *resolution)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, resolution);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetRecommendedLayerResolutionMETA(((wine_XrSession *)session)->session, info, resolution);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrGetReferenceSpaceBoundsRect(XrSession session, XrReferenceSpaceType referenceSpaceType, XrExtent2Df *bounds)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %#x, %p\n", session, referenceSpaceType, bounds);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetReferenceSpaceBoundsRect(((wine_XrSession *)session)->session, referenceSpaceType, bounds);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrGetRenderModelPropertiesFB(XrSession session, XrPath path, XrRenderModelPropertiesFB *properties)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(path), properties);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetRenderModelPropertiesFB(((wine_XrSession *)session)->session, path, properties);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSceneComponentsMSFT(XrSceneMSFT scene, const XrSceneComponentsGetInfoMSFT *getInfo, XrSceneComponentsMSFT *components)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", scene, getInfo, components);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(scene))).p_xrGetSceneComponentsMSFT(scene, getInfo, components);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, XrSceneComputeStateMSFT *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p\n", sceneObserver, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(sceneObserver))).p_xrGetSceneComputeStateMSFT(sceneObserver, state);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSceneMarkerDecodedStringMSFT(XrSceneMSFT scene, const XrUuidMSFT *markerId, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %u, %p, %p\n", scene, markerId, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(scene))).p_xrGetSceneMarkerDecodedStringMSFT(scene, markerId, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSceneMarkerRawDataMSFT(XrSceneMSFT scene, const XrUuidMSFT *markerId, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, uint8_t *buffer)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %u, %p, %p\n", scene, markerId, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(scene))).p_xrGetSceneMarkerRawDataMSFT(scene, markerId, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, const XrSceneMeshBuffersGetInfoMSFT *getInfo, XrSceneMeshBuffersMSFT *buffers)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
XrResult result;
|
|
|
|
XrSceneMeshBuffersGetInfoMSFT_host getInfo_host;
|
|
|
|
WINE_TRACE("%p, %p, %p\n", scene, getInfo, buffers);
|
|
|
|
|
|
|
|
convert_XrSceneMeshBuffersGetInfoMSFT_win_to_host(getInfo, &getInfo_host);
|
2024-04-20 04:25:34 +03:00
|
|
|
result = (*get_dispatch_table((uint64_t)(scene))).p_xrGetSceneMeshBuffersMSFT(scene, &getInfo_host, buffers);
|
2021-06-15 21:47:55 +03:00
|
|
|
|
|
|
|
return result;
|
|
|
|
#else
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", scene, getInfo, buffers);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(scene))).p_xrGetSceneMeshBuffersMSFT(scene, getInfo, buffers);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, const XrSerializedSceneFragmentDataGetInfoMSFT *getInfo, uint32_t countInput, uint32_t *readOutput, uint8_t *buffer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p, %u, %p, %p\n", scene, getInfo, countInput, readOutput, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(scene))).p_xrGetSerializedSceneFragmentDataMSFT(scene, getInfo, countInput, readOutput, buffer);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSpaceBoundary2DFB(XrSession session, XrSpace space, XrBoundary2DFB *boundary2DOutput)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, space, boundary2DOutput);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetSpaceBoundary2DFB(((wine_XrSession *)session)->session, space, boundary2DOutput);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSpaceBoundingBox2DFB(XrSession session, XrSpace space, XrRect2Df *boundingBox2DOutput)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, space, boundingBox2DOutput);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetSpaceBoundingBox2DFB(((wine_XrSession *)session)->session, space, boundingBox2DOutput);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSpaceBoundingBox3DFB(XrSession session, XrSpace space, XrRect3DfFB *boundingBox3DOutput)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, space, boundingBox3DOutput);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetSpaceBoundingBox3DFB(((wine_XrSession *)session)->session, space, boundingBox3DOutput);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSpaceComponentStatusFB(XrSpace space, XrSpaceComponentTypeFB componentType, XrSpaceComponentStatusFB *status)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %#x, %p\n", space, componentType, status);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(space))).p_xrGetSpaceComponentStatusFB(space, componentType, status);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSpaceContainerFB(XrSession session, XrSpace space, XrSpaceContainerFB *spaceContainerOutput)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, space, spaceContainerOutput);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetSpaceContainerFB(((wine_XrSession *)session)->session, space, spaceContainerOutput);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSpaceRoomLayoutFB(XrSession session, XrSpace space, XrRoomLayoutFB *roomLayoutOutput)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, space, roomLayoutOutput);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetSpaceRoomLayoutFB(((wine_XrSession *)session)->session, space, roomLayoutOutput);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSpaceSemanticLabelsFB(XrSession session, XrSpace space, XrSemanticLabelsFB *semanticLabelsOutput)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, space, semanticLabelsOutput);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetSpaceSemanticLabelsFB(((wine_XrSession *)session)->session, space, semanticLabelsOutput);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSpaceTriangleMeshMETA(XrSpace space, const XrSpaceTriangleMeshGetInfoMETA *getInfo, XrSpaceTriangleMeshMETA *triangleMeshOutput)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", space, getInfo, triangleMeshOutput);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(space))).p_xrGetSpaceTriangleMeshMETA(space, getInfo, triangleMeshOutput);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSpaceUserIdFB(XrSpaceUserFB user, XrSpaceUserIdFB *userId)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", user, userId);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(user))).p_xrGetSpaceUserIdFB(user, userId);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetSpaceUuidFB(XrSpace space, XrUuidEXT *uuid)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", space, uuid);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(space))).p_xrGetSpaceUuidFB(space, uuid);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSpatialAnchorNameHTC(XrSpace anchor, XrSpatialAnchorNameHTC *name)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", anchor, name);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(anchor))).p_xrGetSpatialAnchorNameHTC(anchor, name);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, const XrSpatialGraphNodeBindingPropertiesGetInfoMSFT *getInfo, XrSpatialGraphNodeBindingPropertiesMSFT *properties)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", nodeBinding, getInfo, properties);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(nodeBinding))).p_xrGetSpatialGraphNodeBindingPropertiesMSFT(nodeBinding, getInfo, properties);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrGetSwapchainStateFB(XrSwapchain swapchain, XrSwapchainStateBaseHeaderFB *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p\n", swapchain, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSwapchain *)swapchain)->wine_session->wine_instance->funcs.p_xrGetSwapchainStateFB(((wine_XrSwapchain *)swapchain)->swapchain, state);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrGetSystemProperties(XrInstance instance, XrSystemId systemId, XrSystemProperties *properties)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", instance, wine_dbgstr_longlong(systemId), properties);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetSystemProperties(((wine_XrInstance *)instance)->instance, systemId, properties);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrGetViewConfigurationProperties(XrInstance instance, XrSystemId systemId, XrViewConfigurationType viewConfigurationType, XrViewConfigurationProperties *configurationProperties)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %#x, %p\n", instance, wine_dbgstr_longlong(systemId), viewConfigurationType, configurationProperties);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrGetViewConfigurationProperties(((wine_XrInstance *)instance)->instance, systemId, viewConfigurationType, configurationProperties);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetVirtualKeyboardDirtyTexturesMETA(XrVirtualKeyboardMETA keyboard, uint32_t textureIdCapacityInput, uint32_t *textureIdCountOutput, uint64_t *textureIds)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %u, %p, %p\n", keyboard, textureIdCapacityInput, textureIdCountOutput, textureIds);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrGetVirtualKeyboardDirtyTexturesMETA(keyboard, textureIdCapacityInput, textureIdCountOutput, textureIds);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetVirtualKeyboardModelAnimationStatesMETA(XrVirtualKeyboardMETA keyboard, XrVirtualKeyboardModelAnimationStatesMETA *animationStates)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", keyboard, animationStates);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrGetVirtualKeyboardModelAnimationStatesMETA(keyboard, animationStates);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetVirtualKeyboardScaleMETA(XrVirtualKeyboardMETA keyboard, float *scale)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", keyboard, scale);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrGetVirtualKeyboardScaleMETA(keyboard, scale);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrGetVirtualKeyboardTextureDataMETA(XrVirtualKeyboardMETA keyboard, uint64_t textureId, XrVirtualKeyboardTextureDataMETA *textureData)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", keyboard, wine_dbgstr_longlong(textureId), textureData);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrGetVirtualKeyboardTextureDataMETA(keyboard, textureId, textureData);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
static XrResult WINAPI wine_xrGetVisibilityMaskKHR(XrSession session, XrViewConfigurationType viewConfigurationType, uint32_t viewIndex, XrVisibilityMaskTypeKHR visibilityMaskType, XrVisibilityMaskKHR *visibilityMask)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %#x, %u, %#x, %p\n", session, viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrGetVisibilityMaskKHR(((wine_XrSession *)session)->session, viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-02-26 20:24:23 +03:00
|
|
|
static XrResult WINAPI wine_xrGetVulkanGraphicsRequirements2KHR(XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsVulkanKHR *graphicsRequirements)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 20:24:23 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", instance, wine_dbgstr_longlong(systemId), graphicsRequirements);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrGetVulkanGraphicsRequirements2KHR(((wine_XrInstance *)instance)->instance, systemId, graphicsRequirements);
|
|
|
|
return ret;
|
2021-02-26 20:24:23 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
static XrResult WINAPI wine_xrGetVulkanGraphicsRequirementsKHR(XrInstance instance, XrSystemId systemId, XrGraphicsRequirementsVulkanKHR *graphicsRequirements)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", instance, wine_dbgstr_longlong(systemId), graphicsRequirements);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrGetVulkanGraphicsRequirementsKHR(((wine_XrInstance *)instance)->instance, systemId, graphicsRequirements);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrImportLocalizationMapML(XrSession session, const XrLocalizationMapImportInfoML *importInfo, XrUuidEXT *mapUuid)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, importInfo, mapUuid);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrImportLocalizationMapML(((wine_XrSession *)session)->session, importInfo, mapUuid);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
static XrResult WINAPI wine_xrLoadControllerModelMSFT(XrSession session, XrControllerModelKeyMSFT modelKey, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, uint8_t *buffer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %u, %p, %p\n", session, wine_dbgstr_longlong(modelKey), bufferCapacityInput, bufferCountOutput, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrLoadControllerModelMSFT(((wine_XrSession *)session)->session, modelKey, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrLoadRenderModelFB(XrSession session, const XrRenderModelLoadInfoFB *info, XrRenderModelBufferFB *buffer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrLoadRenderModelFB(((wine_XrSession *)session)->session, info, buffer);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, const XrBodyJointsLocateInfoFB *locateInfo, XrBodyJointLocationsFB *locations)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", bodyTracker, locateInfo, locations);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(bodyTracker))).p_xrLocateBodyJointsFB(bodyTracker, locateInfo, locations);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
static XrResult WINAPI wine_xrLocateHandJointsEXT(XrHandTrackerEXT handTracker, const XrHandJointsLocateInfoEXT *locateInfo, XrHandJointLocationsEXT *locations)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", handTracker, locateInfo, locations);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(handTracker))).p_xrLocateHandJointsEXT(handTracker, locateInfo, locations);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrLocateSceneComponentsMSFT(XrSceneMSFT scene, const XrSceneComponentsLocateInfoMSFT *locateInfo, XrSceneComponentLocationsMSFT *locations)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", scene, locateInfo, locations);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(scene))).p_xrLocateSceneComponentsMSFT(scene, locateInfo, locations);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrLocateSpace(XrSpace space, XrSpace baseSpace, XrTime time, XrSpaceLocation *location)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, 0x%s, %p\n", space, baseSpace, wine_dbgstr_longlong(time), location);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrLocateSpace(space, baseSpace, time, location);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
XrResult WINAPI wine_xrLocateSpaces(XrSession session, const XrSpacesLocateInfo *locateInfo, XrSpaceLocations *spaceLocations)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, locateInfo, spaceLocations);
|
|
|
|
ret = xrLocateSpaces(((wine_XrSession *)session)->session, locateInfo, spaceLocations);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrLocateSpacesKHR(XrSession session, const XrSpacesLocateInfo *locateInfo, XrSpaceLocations *spaceLocations)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, locateInfo, spaceLocations);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrLocateSpacesKHR(((wine_XrSession *)session)->session, locateInfo, spaceLocations);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrLocateViews(XrSession session, const XrViewLocateInfo *viewLocateInfo, XrViewState *viewState, uint32_t viewCapacityInput, uint32_t *viewCountOutput, XrView *views)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p, %u, %p, %p\n", session, viewLocateInfo, viewState, viewCapacityInput, viewCountOutput, views);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrLocateViews(((wine_XrSession *)session)->session, viewLocateInfo, viewState, viewCapacityInput, viewCountOutput, views);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
static XrResult WINAPI wine_xrPassthroughLayerPauseFB(XrPassthroughLayerFB layer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p\n", layer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(layer))).p_xrPassthroughLayerPauseFB(layer);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrPassthroughLayerResumeFB(XrPassthroughLayerFB layer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p\n", layer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(layer))).p_xrPassthroughLayerResumeFB(layer);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, const XrPassthroughKeyboardHandsIntensityFB *intensity)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p\n", layer, intensity);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(layer))).p_xrPassthroughLayerSetKeyboardHandsIntensityFB(layer, intensity);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
static XrResult WINAPI wine_xrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, const XrPassthroughStyleFB *style)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %p\n", layer, style);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(layer))).p_xrPassthroughLayerSetStyleFB(layer, style);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrPassthroughPauseFB(XrPassthroughFB passthrough)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p\n", passthrough);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(passthrough))).p_xrPassthroughPauseFB(passthrough);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrPassthroughStartFB(XrPassthroughFB passthrough)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p\n", passthrough);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(passthrough))).p_xrPassthroughStartFB(passthrough);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrPathToString(XrInstance instance, XrPath path, uint32_t bufferCapacityInput, uint32_t *bufferCountOutput, char *buffer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %u, %p, %p\n", instance, wine_dbgstr_longlong(path), bufferCapacityInput, bufferCountOutput, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrPathToString(((wine_XrInstance *)instance)->instance, path, bufferCapacityInput, bufferCountOutput, buffer);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrPerfSettingsSetPerformanceLevelEXT(XrSession session, XrPerfSettingsDomainEXT domain, XrPerfSettingsLevelEXT level)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %#x, %#x\n", session, domain, level);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrPerfSettingsSetPerformanceLevelEXT(((wine_XrSession *)session)->session, domain, level);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-08-03 19:53:18 +03:00
|
|
|
static XrResult WINAPI wine_xrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, const XrSpatialAnchorPersistenceInfoMSFT *spatialAnchorPersistenceInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-08-03 19:53:18 +03:00
|
|
|
WINE_TRACE("%p, %p\n", spatialAnchorStore, spatialAnchorPersistenceInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(spatialAnchorStore))).p_xrPersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceInfo);
|
|
|
|
return ret;
|
2021-08-03 19:53:18 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrPollFutureEXT(XrInstance instance, const XrFuturePollInfoEXT *pollInfo, XrFuturePollResultEXT *pollResult)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", instance, pollInfo, pollResult);
|
|
|
|
ret = ((wine_XrInstance *)instance)->funcs.p_xrPollFutureEXT(((wine_XrInstance *)instance)->instance, pollInfo, pollResult);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrQueryLocalizationMapsML(XrSession session, const XrLocalizationMapQueryInfoBaseHeaderML *queryInfo, uint32_t mapCapacityInput, uint32_t *mapCountOutput, XrLocalizationMapML *maps)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %u, %p, %p\n", session, queryInfo, mapCapacityInput, mapCountOutput, maps);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrQueryLocalizationMapsML(((wine_XrSession *)session)->session, queryInfo, mapCapacityInput, mapCountOutput, maps);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrQueryPerformanceMetricsCounterMETA(XrSession session, XrPath counterPath, XrPerformanceMetricsCounterMETA *counter)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(counterPath), counter);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrQueryPerformanceMetricsCounterMETA(((wine_XrSession *)session)->session, counterPath, counter);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrQuerySpacesFB(XrSession session, const XrSpaceQueryInfoBaseHeaderFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, requestId);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrQuerySpacesFB(((wine_XrSession *)session)->session, info, requestId);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrQuerySystemTrackedKeyboardFB(XrSession session, const XrKeyboardTrackingQueryFB *queryInfo, XrKeyboardTrackingDescriptionFB *keyboard)
|
|
|
|
{
|
|
|
|
#if defined(USE_STRUCT_CONVERSION)
|
|
|
|
XrResult result;
|
|
|
|
XrKeyboardTrackingDescriptionFB_host keyboard_host;
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, queryInfo, keyboard);
|
|
|
|
|
|
|
|
result = ((wine_XrSession *)session)->wine_instance->funcs.p_xrQuerySystemTrackedKeyboardFB(((wine_XrSession *)session)->session, queryInfo, &keyboard_host);
|
|
|
|
|
|
|
|
convert_XrKeyboardTrackingDescriptionFB_host_to_win(&keyboard_host, keyboard);
|
|
|
|
return result;
|
|
|
|
#else
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, queryInfo, keyboard);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrQuerySystemTrackedKeyboardFB(((wine_XrSession *)session)->session, queryInfo, keyboard);
|
|
|
|
return ret;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
static XrResult WINAPI wine_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-02-26 14:42:08 +03:00
|
|
|
WINE_TRACE("%p, %f\n", session, displayRefreshRate);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrRequestDisplayRefreshRateFB(((wine_XrSession *)session)->session, displayRefreshRate);
|
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrRequestExitSession(XrSession session)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p\n", session);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrRequestExitSession(((wine_XrSession *)session)->session);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrRequestMapLocalizationML(XrSession session, const XrMapLocalizationRequestInfoML *requestInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", session, requestInfo);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrRequestMapLocalizationML(((wine_XrSession *)session)->session, requestInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrRequestSceneCaptureFB(XrSession session, const XrSceneCaptureRequestInfoFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, requestId);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrRequestSceneCaptureFB(((wine_XrSession *)session)->session, info, requestId);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrResultToString(XrInstance instance, XrResult value, char buffer[])
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %#x, %p\n", instance, value, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrResultToString(((wine_XrInstance *)instance)->instance, value, buffer);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrRetrieveSpaceQueryResultsFB(XrSession session, XrAsyncRequestIdFB requestId, XrSpaceQueryResultsFB *results)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %p\n", session, wine_dbgstr_longlong(requestId), results);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrRetrieveSpaceQueryResultsFB(((wine_XrSession *)session)->session, requestId, results);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrSaveSpaceFB(XrSession session, const XrSpaceSaveInfoFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, requestId);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSaveSpaceFB(((wine_XrSession *)session)->session, info, requestId);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrSaveSpaceListFB(XrSession session, const XrSpaceListSaveInfoFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, requestId);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSaveSpaceListFB(((wine_XrSession *)session)->session, info, requestId);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrSendVirtualKeyboardInputMETA(XrVirtualKeyboardMETA keyboard, const XrVirtualKeyboardInputInfoMETA *info, XrPosef *interactorRootPose)
|
2021-02-26 14:42:08 +03:00
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", keyboard, info, interactorRootPose);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrSendVirtualKeyboardInputMETA(keyboard, info, interactorRootPose);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrSetColorSpaceFB(XrSession session, const XrColorSpaceFB colorSpace)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %#x\n", session, colorSpace);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetColorSpaceFB(((wine_XrSession *)session)->session, colorSpace);
|
2024-04-20 04:25:34 +03:00
|
|
|
return ret;
|
2021-02-26 14:42:08 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrSetDigitalLensControlALMALENCE(XrSession session, const XrDigitalLensControlALMALENCE *digitalLensControl)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, digitalLensControl);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetDigitalLensControlALMALENCE(((wine_XrSession *)session)->session, digitalLensControl);
|
|
|
|
return ret;
|
2023-05-06 06:43:12 +03:00
|
|
|
}
|
|
|
|
|
2021-04-27 15:57:58 +03:00
|
|
|
static XrResult WINAPI wine_xrSetEnvironmentDepthEstimationVARJO(XrSession session, XrBool32 enabled)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-04-27 15:57:58 +03:00
|
|
|
WINE_TRACE("%p, %u\n", session, enabled);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetEnvironmentDepthEstimationVARJO(((wine_XrSession *)session)->session, enabled);
|
|
|
|
return ret;
|
2021-04-27 15:57:58 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrSetEnvironmentDepthHandRemovalMETA(XrEnvironmentDepthProviderMETA environmentDepthProvider, const XrEnvironmentDepthHandRemovalSetInfoMETA *setInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", environmentDepthProvider, setInfo);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(environmentDepthProvider))).p_xrSetEnvironmentDepthHandRemovalMETA(environmentDepthProvider, setInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
static XrResult WINAPI wine_xrSetInputDeviceActiveEXT(XrSession session, XrPath interactionProfile, XrPath topLevelPath, XrBool32 isActive)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, 0x%s, %u\n", session, wine_dbgstr_longlong(interactionProfile), wine_dbgstr_longlong(topLevelPath), isActive);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetInputDeviceActiveEXT(((wine_XrSession *)session)->session, interactionProfile, topLevelPath, isActive);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrSetInputDeviceLocationEXT(XrSession session, XrPath topLevelPath, XrPath inputSourcePath, XrSpace space, XrPosef pose)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2024-04-18 22:52:45 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, 0x%s, %p, {{%f, %f, %f, %f}, {%f %f %f}}\n", session, wine_dbgstr_longlong(topLevelPath), wine_dbgstr_longlong(inputSourcePath), space, pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w, pose.position.x, pose.position.y, pose.position.z);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetInputDeviceLocationEXT(((wine_XrSession *)session)->session, topLevelPath, inputSourcePath, space, pose);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrSetInputDeviceStateBoolEXT(XrSession session, XrPath topLevelPath, XrPath inputSourcePath, XrBool32 state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, 0x%s, %u\n", session, wine_dbgstr_longlong(topLevelPath), wine_dbgstr_longlong(inputSourcePath), state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetInputDeviceStateBoolEXT(((wine_XrSession *)session)->session, topLevelPath, inputSourcePath, state);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrSetInputDeviceStateFloatEXT(XrSession session, XrPath topLevelPath, XrPath inputSourcePath, float state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, 0x%s, %f\n", session, wine_dbgstr_longlong(topLevelPath), wine_dbgstr_longlong(inputSourcePath), state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetInputDeviceStateFloatEXT(((wine_XrSession *)session)->session, topLevelPath, inputSourcePath, state);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrSetInputDeviceStateVector2fEXT(XrSession session, XrPath topLevelPath, XrPath inputSourcePath, XrVector2f state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, 0x%s, %f, %f\n", session, wine_dbgstr_longlong(topLevelPath), wine_dbgstr_longlong(inputSourcePath), state.x, state.y);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetInputDeviceStateVector2fEXT(((wine_XrSession *)session)->session, topLevelPath, inputSourcePath, state);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrSetMarkerTrackingPredictionVARJO(XrSession session, uint64_t markerId, XrBool32 enable)
|
2024-04-20 04:11:40 +03:00
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
WINE_TRACE("%p, 0x%s, %u\n", session, wine_dbgstr_longlong(markerId), enable);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetMarkerTrackingPredictionVARJO(((wine_XrSession *)session)->session, markerId, enable);
|
2024-04-20 04:11:40 +03:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrSetMarkerTrackingTimeoutVARJO(XrSession session, uint64_t markerId, XrDuration timeout)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, 0x%s, 0x%s\n", session, wine_dbgstr_longlong(markerId), wine_dbgstr_longlong(timeout));
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetMarkerTrackingTimeoutVARJO(((wine_XrSession *)session)->session, markerId, timeout);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrSetMarkerTrackingVARJO(XrSession session, XrBool32 enabled)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %u\n", session, enabled);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetMarkerTrackingVARJO(((wine_XrSession *)session)->session, enabled);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrSetPerformanceMetricsStateMETA(XrSession session, const XrPerformanceMetricsStateMETA *state)
|
2021-12-28 17:06:02 +03:00
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetPerformanceMetricsStateMETA(((wine_XrSession *)session)->session, state);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrSetSpaceComponentStatusFB(XrSpace space, const XrSpaceComponentStatusSetInfoFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", space, info, requestId);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(space))).p_xrSetSpaceComponentStatusFB(space, info, requestId);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrSetTrackingOptimizationSettingsHintQCOM(XrSession session, XrTrackingOptimizationSettingsDomainQCOM domain, XrTrackingOptimizationSettingsHintQCOM hint)
|
2021-12-28 17:06:02 +03:00
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %#x, %#x\n", session, domain, hint);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetTrackingOptimizationSettingsHintQCOM(((wine_XrSession *)session)->session, domain, hint);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
static XrResult WINAPI wine_xrSetViewOffsetVARJO(XrSession session, float offset)
|
2021-12-28 17:06:02 +03:00
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2023-05-06 06:43:12 +03:00
|
|
|
WINE_TRACE("%p, %f\n", session, offset);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrSetViewOffsetVARJO(((wine_XrSession *)session)->session, offset);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrSetVirtualKeyboardModelVisibilityMETA(XrVirtualKeyboardMETA keyboard, const XrVirtualKeyboardModelVisibilitySetInfoMETA *modelVisibility)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", keyboard, modelVisibility);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrSetVirtualKeyboardModelVisibilityMETA(keyboard, modelVisibility);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrShareSpacesFB(XrSession session, const XrSpaceShareInfoFB *info, XrAsyncRequestIdFB *requestId)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, info, requestId);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrShareSpacesFB(((wine_XrSession *)session)->session, info, requestId);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrSnapshotMarkerDetectorML(XrMarkerDetectorML markerDetector, XrMarkerDetectorSnapshotInfoML *snapshotInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", markerDetector, snapshotInfo);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(markerDetector))).p_xrSnapshotMarkerDetectorML(markerDetector, snapshotInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrStartEnvironmentDepthProviderMETA(XrEnvironmentDepthProviderMETA environmentDepthProvider)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", environmentDepthProvider);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(environmentDepthProvider))).p_xrStartEnvironmentDepthProviderMETA(environmentDepthProvider);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrStopEnvironmentDepthProviderMETA(XrEnvironmentDepthProviderMETA environmentDepthProvider)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p\n", environmentDepthProvider);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(environmentDepthProvider))).p_xrStopEnvironmentDepthProviderMETA(environmentDepthProvider);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrStopHapticFeedback(XrSession session, const XrHapticActionInfo *hapticActionInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, hapticActionInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrStopHapticFeedback(((wine_XrSession *)session)->session, hapticActionInfo);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrStringToPath(XrInstance instance, const char *pathString, XrPath *path)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", instance, pathString, path);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrStringToPath(((wine_XrInstance *)instance)->instance, pathString, path);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrStructureTypeToString(XrInstance instance, XrStructureType value, char buffer[])
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %#x, %p\n", instance, value, buffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrStructureTypeToString(((wine_XrInstance *)instance)->instance, value, buffer);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrSuggestInteractionProfileBindings(XrInstance instance, const XrInteractionProfileSuggestedBinding *suggestedBindings)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p\n", instance, suggestedBindings);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrSuggestInteractionProfileBindings(((wine_XrInstance *)instance)->instance, suggestedBindings);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrSuggestVirtualKeyboardLocationMETA(XrVirtualKeyboardMETA keyboard, const XrVirtualKeyboardLocationInfoMETA *locationInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", keyboard, locationInfo);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(keyboard))).p_xrSuggestVirtualKeyboardLocationMETA(keyboard, locationInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrSyncActions(XrSession session, const XrActionsSyncInfo *syncInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p\n", session, syncInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrSyncActions(((wine_XrSession *)session)->session, syncInfo);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrThermalGetTemperatureTrendEXT(XrSession session, XrPerfSettingsDomainEXT domain, XrPerfSettingsNotificationLevelEXT *notificationLevel, float *tempHeadroom, float *tempSlope)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %#x, %p, %p, %p\n", session, domain, notificationLevel, tempHeadroom, tempSlope);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrThermalGetTemperatureTrendEXT(((wine_XrSession *)session)->session, domain, notificationLevel, tempHeadroom, tempSlope);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
static XrResult WINAPI wine_xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p\n", mesh);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(mesh))).p_xrTriangleMeshBeginUpdateFB(mesh);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, uint32_t *outVertexCount)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %p\n", mesh, outVertexCount);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(mesh))).p_xrTriangleMeshBeginVertexBufferUpdateFB(mesh, outVertexCount);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrTriangleMeshEndUpdateFB(XrTriangleMeshFB mesh, uint32_t vertexCount, uint32_t triangleCount)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %u, %u\n", mesh, vertexCount, triangleCount);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(mesh))).p_xrTriangleMeshEndUpdateFB(mesh, vertexCount, triangleCount);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrTriangleMeshEndVertexBufferUpdateFB(XrTriangleMeshFB mesh)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p\n", mesh);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(mesh))).p_xrTriangleMeshEndVertexBufferUpdateFB(mesh);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, uint32_t **outIndexBuffer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %p\n", mesh, outIndexBuffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(mesh))).p_xrTriangleMeshGetIndexBufferFB(mesh, outIndexBuffer);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static XrResult WINAPI wine_xrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, XrVector3f **outVertexBuffer)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-12-28 17:06:02 +03:00
|
|
|
WINE_TRACE("%p, %p\n", mesh, outVertexBuffer);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(mesh))).p_xrTriangleMeshGetVertexBufferFB(mesh, outVertexBuffer);
|
|
|
|
return ret;
|
2021-12-28 17:06:02 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, const XrSpatialGraphStaticNodeBindingCreateInfoMSFT *createInfo, XrSpatialGraphNodeBindingMSFT *nodeBinding)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", session, createInfo, nodeBinding);
|
|
|
|
ret = ((wine_XrSession *)session)->wine_instance->funcs.p_xrTryCreateSpatialGraphStaticNodeBindingMSFT(((wine_XrSession *)session)->session, createInfo, nodeBinding);
|
|
|
|
if (!ret) register_dispatchable_handle((uint64_t)*nodeBinding, &(((wine_XrSession *)session)->wine_instance->funcs));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-08-03 19:53:18 +03:00
|
|
|
static XrResult WINAPI wine_xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, const XrSpatialAnchorPersistenceNameMSFT *spatialAnchorPersistenceName)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-08-03 19:53:18 +03:00
|
|
|
WINE_TRACE("%p, %p\n", spatialAnchorStore, spatialAnchorPersistenceName);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = (*get_dispatch_table((uint64_t)(spatialAnchorStore))).p_xrUnpersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceName);
|
|
|
|
return ret;
|
2021-08-03 19:53:18 +03:00
|
|
|
}
|
|
|
|
|
2024-04-20 04:11:40 +03:00
|
|
|
static XrResult WINAPI wine_xrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, const XrHandMeshUpdateInfoMSFT *updateInfo, XrHandMeshMSFT *handMesh)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p, %p\n", handTracker, updateInfo, handMesh);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(handTracker))).p_xrUpdateHandMeshMSFT(handTracker, updateInfo, handMesh);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2024-04-19 22:08:23 +03:00
|
|
|
static XrResult WINAPI wine_xrUpdatePassthroughColorLutMETA(XrPassthroughColorLutMETA colorLut, const XrPassthroughColorLutUpdateInfoMETA *updateInfo)
|
|
|
|
{
|
|
|
|
XrResult ret;
|
|
|
|
|
|
|
|
WINE_TRACE("%p, %p\n", colorLut, updateInfo);
|
|
|
|
ret = (*get_dispatch_table((uint64_t)(colorLut))).p_xrUpdatePassthroughColorLutMETA(colorLut, updateInfo);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
static XrResult WINAPI wine_xrUpdateSwapchainFB(XrSwapchain swapchain, const XrSwapchainStateBaseHeaderFB *state)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2021-06-15 21:47:55 +03:00
|
|
|
WINE_TRACE("%p, %p\n", swapchain, state);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = ((wine_XrSwapchain *)swapchain)->wine_session->wine_instance->funcs.p_xrUpdateSwapchainFB(((wine_XrSwapchain *)swapchain)->swapchain, state);
|
|
|
|
return ret;
|
2021-06-15 21:47:55 +03:00
|
|
|
}
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
XrResult WINAPI wine_xrWaitFrame(XrSession session, const XrFrameWaitInfo *frameWaitInfo, XrFrameState *frameState)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p, %p\n", session, frameWaitInfo, frameState);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrWaitFrame(((wine_XrSession *)session)->session, frameWaitInfo, frameState);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
XrResult WINAPI wine_xrWaitSwapchainImage(XrSwapchain swapchain, const XrSwapchainImageWaitInfo *waitInfo)
|
|
|
|
{
|
2024-04-20 04:25:34 +03:00
|
|
|
XrResult ret;
|
|
|
|
|
2020-12-30 22:35:28 +03:00
|
|
|
WINE_TRACE("%p, %p\n", swapchain, waitInfo);
|
2024-04-20 04:25:34 +03:00
|
|
|
ret = xrWaitSwapchainImage(((wine_XrSwapchain *)swapchain)->swapchain, waitInfo);
|
|
|
|
return ret;
|
2020-12-30 22:35:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static const struct openxr_func xr_dispatch_table[] =
|
|
|
|
{
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrAcquireEnvironmentDepthImageMETA", &wine_xrAcquireEnvironmentDepthImageMETA},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrAcquireSwapchainImage", &wine_xrAcquireSwapchainImage},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrApplyForceFeedbackCurlMNDX", &wine_xrApplyForceFeedbackCurlMNDX},
|
|
|
|
{"xrApplyFoveationHTC", &wine_xrApplyFoveationHTC},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrApplyHapticFeedback", &wine_xrApplyHapticFeedback},
|
|
|
|
{"xrAttachSessionActionSets", &wine_xrAttachSessionActionSets},
|
|
|
|
{"xrBeginFrame", &wine_xrBeginFrame},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrBeginPlaneDetectionEXT", &wine_xrBeginPlaneDetectionEXT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrBeginSession", &wine_xrBeginSession},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCancelFutureEXT", &wine_xrCancelFutureEXT},
|
|
|
|
{"xrChangeVirtualKeyboardTextContextMETA", &wine_xrChangeVirtualKeyboardTextContextMETA},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrClearSpatialAnchorStoreMSFT", &wine_xrClearSpatialAnchorStoreMSFT},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrComputeNewSceneMSFT", &wine_xrComputeNewSceneMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrConvertTimeToWin32PerformanceCounterKHR", &wine_xrConvertTimeToWin32PerformanceCounterKHR},
|
|
|
|
{"xrConvertWin32PerformanceCounterToTimeKHR", &wine_xrConvertWin32PerformanceCounterToTimeKHR},
|
|
|
|
{"xrCreateAction", &wine_xrCreateAction},
|
|
|
|
{"xrCreateActionSet", &wine_xrCreateActionSet},
|
|
|
|
{"xrCreateActionSpace", &wine_xrCreateActionSpace},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreateApiLayerInstance", &wine_xrCreateApiLayerInstance},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateBodyTrackerFB", &wine_xrCreateBodyTrackerFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreateEnvironmentDepthProviderMETA", &wine_xrCreateEnvironmentDepthProviderMETA},
|
|
|
|
{"xrCreateEnvironmentDepthSwapchainMETA", &wine_xrCreateEnvironmentDepthSwapchainMETA},
|
|
|
|
{"xrCreateExportedLocalizationMapML", &wine_xrCreateExportedLocalizationMapML},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateEyeTrackerFB", &wine_xrCreateEyeTrackerFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreateFaceTracker2FB", &wine_xrCreateFaceTracker2FB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateFaceTrackerFB", &wine_xrCreateFaceTrackerFB},
|
|
|
|
{"xrCreateFacialTrackerHTC", &wine_xrCreateFacialTrackerHTC},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrCreateFoveationProfileFB", &wine_xrCreateFoveationProfileFB},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrCreateGeometryInstanceFB", &wine_xrCreateGeometryInstanceFB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateHandMeshSpaceMSFT", &wine_xrCreateHandMeshSpaceMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrCreateHandTrackerEXT", &wine_xrCreateHandTrackerEXT},
|
|
|
|
{"xrCreateInstance", &wine_xrCreateInstance},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateKeyboardSpaceFB", &wine_xrCreateKeyboardSpaceFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreateMarkerDetectorML", &wine_xrCreateMarkerDetectorML},
|
|
|
|
{"xrCreateMarkerSpaceML", &wine_xrCreateMarkerSpaceML},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateMarkerSpaceVARJO", &wine_xrCreateMarkerSpaceVARJO},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreatePassthroughColorLutMETA", &wine_xrCreatePassthroughColorLutMETA},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrCreatePassthroughFB", &wine_xrCreatePassthroughFB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreatePassthroughHTC", &wine_xrCreatePassthroughHTC},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrCreatePassthroughLayerFB", &wine_xrCreatePassthroughLayerFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreatePlaneDetectorEXT", &wine_xrCreatePlaneDetectorEXT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrCreateReferenceSpace", &wine_xrCreateReferenceSpace},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrCreateSceneMSFT", &wine_xrCreateSceneMSFT},
|
|
|
|
{"xrCreateSceneObserverMSFT", &wine_xrCreateSceneObserverMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrCreateSession", &wine_xrCreateSession},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateSpaceUserFB", &wine_xrCreateSpaceUserFB},
|
|
|
|
{"xrCreateSpatialAnchorFB", &wine_xrCreateSpatialAnchorFB},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrCreateSpatialAnchorFromPersistedNameMSFT", &wine_xrCreateSpatialAnchorFromPersistedNameMSFT},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreateSpatialAnchorHTC", &wine_xrCreateSpatialAnchorHTC},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrCreateSpatialAnchorMSFT", &wine_xrCreateSpatialAnchorMSFT},
|
|
|
|
{"xrCreateSpatialAnchorSpaceMSFT", &wine_xrCreateSpatialAnchorSpaceMSFT},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrCreateSpatialAnchorStoreConnectionMSFT", &wine_xrCreateSpatialAnchorStoreConnectionMSFT},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrCreateSpatialGraphNodeSpaceMSFT", &wine_xrCreateSpatialGraphNodeSpaceMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrCreateSwapchain", &wine_xrCreateSwapchain},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrCreateTriangleMeshFB", &wine_xrCreateTriangleMeshFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrCreateVirtualKeyboardMETA", &wine_xrCreateVirtualKeyboardMETA},
|
|
|
|
{"xrCreateVirtualKeyboardSpaceMETA", &wine_xrCreateVirtualKeyboardSpaceMETA},
|
2021-02-26 20:24:23 +03:00
|
|
|
{"xrCreateVulkanDeviceKHR", &wine_xrCreateVulkanDeviceKHR},
|
|
|
|
{"xrCreateVulkanInstanceKHR", &wine_xrCreateVulkanInstanceKHR},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrDeserializeSceneMSFT", &wine_xrDeserializeSceneMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrDestroyAction", &wine_xrDestroyAction},
|
|
|
|
{"xrDestroyActionSet", &wine_xrDestroyActionSet},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrDestroyBodyTrackerFB", &wine_xrDestroyBodyTrackerFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrDestroyEnvironmentDepthProviderMETA", &wine_xrDestroyEnvironmentDepthProviderMETA},
|
|
|
|
{"xrDestroyEnvironmentDepthSwapchainMETA", &wine_xrDestroyEnvironmentDepthSwapchainMETA},
|
|
|
|
{"xrDestroyExportedLocalizationMapML", &wine_xrDestroyExportedLocalizationMapML},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrDestroyEyeTrackerFB", &wine_xrDestroyEyeTrackerFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrDestroyFaceTracker2FB", &wine_xrDestroyFaceTracker2FB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrDestroyFaceTrackerFB", &wine_xrDestroyFaceTrackerFB},
|
|
|
|
{"xrDestroyFacialTrackerHTC", &wine_xrDestroyFacialTrackerHTC},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrDestroyFoveationProfileFB", &wine_xrDestroyFoveationProfileFB},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrDestroyGeometryInstanceFB", &wine_xrDestroyGeometryInstanceFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrDestroyHandTrackerEXT", &wine_xrDestroyHandTrackerEXT},
|
|
|
|
{"xrDestroyInstance", &wine_xrDestroyInstance},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrDestroyMarkerDetectorML", &wine_xrDestroyMarkerDetectorML},
|
|
|
|
{"xrDestroyPassthroughColorLutMETA", &wine_xrDestroyPassthroughColorLutMETA},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrDestroyPassthroughFB", &wine_xrDestroyPassthroughFB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrDestroyPassthroughHTC", &wine_xrDestroyPassthroughHTC},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrDestroyPassthroughLayerFB", &wine_xrDestroyPassthroughLayerFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrDestroyPlaneDetectorEXT", &wine_xrDestroyPlaneDetectorEXT},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrDestroySceneMSFT", &wine_xrDestroySceneMSFT},
|
|
|
|
{"xrDestroySceneObserverMSFT", &wine_xrDestroySceneObserverMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrDestroySession", &wine_xrDestroySession},
|
|
|
|
{"xrDestroySpace", &wine_xrDestroySpace},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrDestroySpaceUserFB", &wine_xrDestroySpaceUserFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrDestroySpatialAnchorMSFT", &wine_xrDestroySpatialAnchorMSFT},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrDestroySpatialAnchorStoreConnectionMSFT", &wine_xrDestroySpatialAnchorStoreConnectionMSFT},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrDestroySpatialGraphNodeBindingMSFT", &wine_xrDestroySpatialGraphNodeBindingMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrDestroySwapchain", &wine_xrDestroySwapchain},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrDestroyTriangleMeshFB", &wine_xrDestroyTriangleMeshFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrDestroyVirtualKeyboardMETA", &wine_xrDestroyVirtualKeyboardMETA},
|
|
|
|
{"xrEnableLocalizationEventsML", &wine_xrEnableLocalizationEventsML},
|
|
|
|
{"xrEnableUserCalibrationEventsML", &wine_xrEnableUserCalibrationEventsML},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrEndFrame", &wine_xrEndFrame},
|
|
|
|
{"xrEndSession", &wine_xrEndSession},
|
|
|
|
{"xrEnumerateApiLayerProperties", &wine_xrEnumerateApiLayerProperties},
|
|
|
|
{"xrEnumerateBoundSourcesForAction", &wine_xrEnumerateBoundSourcesForAction},
|
2021-02-26 14:42:08 +03:00
|
|
|
{"xrEnumerateColorSpacesFB", &wine_xrEnumerateColorSpacesFB},
|
|
|
|
{"xrEnumerateDisplayRefreshRatesFB", &wine_xrEnumerateDisplayRefreshRatesFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrEnumerateEnvironmentBlendModes", &wine_xrEnumerateEnvironmentBlendModes},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrEnumerateEnvironmentDepthSwapchainImagesMETA", &wine_xrEnumerateEnvironmentDepthSwapchainImagesMETA},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrEnumerateExternalCamerasOCULUS", &wine_xrEnumerateExternalCamerasOCULUS},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrEnumerateInstanceExtensionProperties", &wine_xrEnumerateInstanceExtensionProperties},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrEnumeratePerformanceMetricsCounterPathsMETA", &wine_xrEnumeratePerformanceMetricsCounterPathsMETA},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrEnumeratePersistedSpatialAnchorNamesMSFT", &wine_xrEnumeratePersistedSpatialAnchorNamesMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrEnumerateReferenceSpaces", &wine_xrEnumerateReferenceSpaces},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrEnumerateRenderModelPathsFB", &wine_xrEnumerateRenderModelPathsFB},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrEnumerateReprojectionModesMSFT", &wine_xrEnumerateReprojectionModesMSFT},
|
|
|
|
{"xrEnumerateSceneComputeFeaturesMSFT", &wine_xrEnumerateSceneComputeFeaturesMSFT},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrEnumerateSpaceSupportedComponentsFB", &wine_xrEnumerateSpaceSupportedComponentsFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrEnumerateSwapchainFormats", &wine_xrEnumerateSwapchainFormats},
|
|
|
|
{"xrEnumerateSwapchainImages", &wine_xrEnumerateSwapchainImages},
|
|
|
|
{"xrEnumerateViewConfigurationViews", &wine_xrEnumerateViewConfigurationViews},
|
|
|
|
{"xrEnumerateViewConfigurations", &wine_xrEnumerateViewConfigurations},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrEnumerateViveTrackerPathsHTCX", &wine_xrEnumerateViveTrackerPathsHTCX},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrEraseSpaceFB", &wine_xrEraseSpaceFB},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrGeometryInstanceSetTransformFB", &wine_xrGeometryInstanceSetTransformFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetActionStateBoolean", &wine_xrGetActionStateBoolean},
|
|
|
|
{"xrGetActionStateFloat", &wine_xrGetActionStateFloat},
|
|
|
|
{"xrGetActionStatePose", &wine_xrGetActionStatePose},
|
|
|
|
{"xrGetActionStateVector2f", &wine_xrGetActionStateVector2f},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrGetAudioInputDeviceGuidOculus", &wine_xrGetAudioInputDeviceGuidOculus},
|
|
|
|
{"xrGetAudioOutputDeviceGuidOculus", &wine_xrGetAudioOutputDeviceGuidOculus},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrGetBodySkeletonFB", &wine_xrGetBodySkeletonFB},
|
2021-02-26 14:42:08 +03:00
|
|
|
{"xrGetControllerModelKeyMSFT", &wine_xrGetControllerModelKeyMSFT},
|
|
|
|
{"xrGetControllerModelPropertiesMSFT", &wine_xrGetControllerModelPropertiesMSFT},
|
|
|
|
{"xrGetControllerModelStateMSFT", &wine_xrGetControllerModelStateMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetCurrentInteractionProfile", &wine_xrGetCurrentInteractionProfile},
|
|
|
|
{"xrGetD3D11GraphicsRequirementsKHR", &wine_xrGetD3D11GraphicsRequirementsKHR},
|
|
|
|
{"xrGetD3D12GraphicsRequirementsKHR", &wine_xrGetD3D12GraphicsRequirementsKHR},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrGetDeviceSampleRateFB", &wine_xrGetDeviceSampleRateFB},
|
2021-02-26 14:42:08 +03:00
|
|
|
{"xrGetDisplayRefreshRateFB", &wine_xrGetDisplayRefreshRateFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetEnvironmentDepthSwapchainStateMETA", &wine_xrGetEnvironmentDepthSwapchainStateMETA},
|
|
|
|
{"xrGetExportedLocalizationMapDataML", &wine_xrGetExportedLocalizationMapDataML},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrGetEyeGazesFB", &wine_xrGetEyeGazesFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetFaceExpressionWeights2FB", &wine_xrGetFaceExpressionWeights2FB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrGetFaceExpressionWeightsFB", &wine_xrGetFaceExpressionWeightsFB},
|
|
|
|
{"xrGetFacialExpressionsHTC", &wine_xrGetFacialExpressionsHTC},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrGetFoveationEyeTrackedStateMETA", &wine_xrGetFoveationEyeTrackedStateMETA},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrGetHandMeshFB", &wine_xrGetHandMeshFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetInputSourceLocalizedName", &wine_xrGetInputSourceLocalizedName},
|
|
|
|
{"xrGetInstanceProcAddr", &wine_xrGetInstanceProcAddr},
|
|
|
|
{"xrGetInstanceProperties", &wine_xrGetInstanceProperties},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetMarkerDetectorStateML", &wine_xrGetMarkerDetectorStateML},
|
|
|
|
{"xrGetMarkerLengthML", &wine_xrGetMarkerLengthML},
|
|
|
|
{"xrGetMarkerNumberML", &wine_xrGetMarkerNumberML},
|
|
|
|
{"xrGetMarkerReprojectionErrorML", &wine_xrGetMarkerReprojectionErrorML},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrGetMarkerSizeVARJO", &wine_xrGetMarkerSizeVARJO},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetMarkerStringML", &wine_xrGetMarkerStringML},
|
|
|
|
{"xrGetMarkersML", &wine_xrGetMarkersML},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetOpenGLGraphicsRequirementsKHR", &wine_xrGetOpenGLGraphicsRequirementsKHR},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetPassthroughPreferencesMETA", &wine_xrGetPassthroughPreferencesMETA},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrGetPerformanceMetricsStateMETA", &wine_xrGetPerformanceMetricsStateMETA},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetPlaneDetectionStateEXT", &wine_xrGetPlaneDetectionStateEXT},
|
|
|
|
{"xrGetPlaneDetectionsEXT", &wine_xrGetPlaneDetectionsEXT},
|
|
|
|
{"xrGetPlanePolygonBufferEXT", &wine_xrGetPlanePolygonBufferEXT},
|
|
|
|
{"xrGetRecommendedLayerResolutionMETA", &wine_xrGetRecommendedLayerResolutionMETA},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetReferenceSpaceBoundsRect", &wine_xrGetReferenceSpaceBoundsRect},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrGetRenderModelPropertiesFB", &wine_xrGetRenderModelPropertiesFB},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrGetSceneComponentsMSFT", &wine_xrGetSceneComponentsMSFT},
|
|
|
|
{"xrGetSceneComputeStateMSFT", &wine_xrGetSceneComputeStateMSFT},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetSceneMarkerDecodedStringMSFT", &wine_xrGetSceneMarkerDecodedStringMSFT},
|
|
|
|
{"xrGetSceneMarkerRawDataMSFT", &wine_xrGetSceneMarkerRawDataMSFT},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrGetSceneMeshBuffersMSFT", &wine_xrGetSceneMeshBuffersMSFT},
|
|
|
|
{"xrGetSerializedSceneFragmentDataMSFT", &wine_xrGetSerializedSceneFragmentDataMSFT},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrGetSpaceBoundary2DFB", &wine_xrGetSpaceBoundary2DFB},
|
|
|
|
{"xrGetSpaceBoundingBox2DFB", &wine_xrGetSpaceBoundingBox2DFB},
|
|
|
|
{"xrGetSpaceBoundingBox3DFB", &wine_xrGetSpaceBoundingBox3DFB},
|
|
|
|
{"xrGetSpaceComponentStatusFB", &wine_xrGetSpaceComponentStatusFB},
|
|
|
|
{"xrGetSpaceContainerFB", &wine_xrGetSpaceContainerFB},
|
|
|
|
{"xrGetSpaceRoomLayoutFB", &wine_xrGetSpaceRoomLayoutFB},
|
|
|
|
{"xrGetSpaceSemanticLabelsFB", &wine_xrGetSpaceSemanticLabelsFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetSpaceTriangleMeshMETA", &wine_xrGetSpaceTriangleMeshMETA},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrGetSpaceUserIdFB", &wine_xrGetSpaceUserIdFB},
|
|
|
|
{"xrGetSpaceUuidFB", &wine_xrGetSpaceUuidFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetSpatialAnchorNameHTC", &wine_xrGetSpatialAnchorNameHTC},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrGetSpatialGraphNodeBindingPropertiesMSFT", &wine_xrGetSpatialGraphNodeBindingPropertiesMSFT},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrGetSwapchainStateFB", &wine_xrGetSwapchainStateFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetSystem", &wine_xrGetSystem},
|
|
|
|
{"xrGetSystemProperties", &wine_xrGetSystemProperties},
|
|
|
|
{"xrGetViewConfigurationProperties", &wine_xrGetViewConfigurationProperties},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrGetVirtualKeyboardDirtyTexturesMETA", &wine_xrGetVirtualKeyboardDirtyTexturesMETA},
|
|
|
|
{"xrGetVirtualKeyboardModelAnimationStatesMETA", &wine_xrGetVirtualKeyboardModelAnimationStatesMETA},
|
|
|
|
{"xrGetVirtualKeyboardScaleMETA", &wine_xrGetVirtualKeyboardScaleMETA},
|
|
|
|
{"xrGetVirtualKeyboardTextureDataMETA", &wine_xrGetVirtualKeyboardTextureDataMETA},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetVisibilityMaskKHR", &wine_xrGetVisibilityMaskKHR},
|
|
|
|
{"xrGetVulkanDeviceExtensionsKHR", &wine_xrGetVulkanDeviceExtensionsKHR},
|
2021-02-26 20:24:23 +03:00
|
|
|
{"xrGetVulkanGraphicsDevice2KHR", &wine_xrGetVulkanGraphicsDevice2KHR},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetVulkanGraphicsDeviceKHR", &wine_xrGetVulkanGraphicsDeviceKHR},
|
2021-02-26 20:24:23 +03:00
|
|
|
{"xrGetVulkanGraphicsRequirements2KHR", &wine_xrGetVulkanGraphicsRequirements2KHR},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrGetVulkanGraphicsRequirementsKHR", &wine_xrGetVulkanGraphicsRequirementsKHR},
|
|
|
|
{"xrGetVulkanInstanceExtensionsKHR", &wine_xrGetVulkanInstanceExtensionsKHR},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrImportLocalizationMapML", &wine_xrImportLocalizationMapML},
|
2021-02-26 14:42:08 +03:00
|
|
|
{"xrLoadControllerModelMSFT", &wine_xrLoadControllerModelMSFT},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrLoadRenderModelFB", &wine_xrLoadRenderModelFB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrLocateBodyJointsFB", &wine_xrLocateBodyJointsFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrLocateHandJointsEXT", &wine_xrLocateHandJointsEXT},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrLocateSceneComponentsMSFT", &wine_xrLocateSceneComponentsMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrLocateSpace", &wine_xrLocateSpace},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrLocateSpaces", &wine_xrLocateSpaces},
|
|
|
|
{"xrLocateSpacesKHR", &wine_xrLocateSpacesKHR},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrLocateViews", &wine_xrLocateViews},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrNegotiateLoaderRuntimeInterface", &wine_xrNegotiateLoaderRuntimeInterface},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrPassthroughLayerPauseFB", &wine_xrPassthroughLayerPauseFB},
|
|
|
|
{"xrPassthroughLayerResumeFB", &wine_xrPassthroughLayerResumeFB},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrPassthroughLayerSetKeyboardHandsIntensityFB", &wine_xrPassthroughLayerSetKeyboardHandsIntensityFB},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrPassthroughLayerSetStyleFB", &wine_xrPassthroughLayerSetStyleFB},
|
|
|
|
{"xrPassthroughPauseFB", &wine_xrPassthroughPauseFB},
|
|
|
|
{"xrPassthroughStartFB", &wine_xrPassthroughStartFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrPathToString", &wine_xrPathToString},
|
|
|
|
{"xrPerfSettingsSetPerformanceLevelEXT", &wine_xrPerfSettingsSetPerformanceLevelEXT},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrPersistSpatialAnchorMSFT", &wine_xrPersistSpatialAnchorMSFT},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrPollEvent", &wine_xrPollEvent},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrPollFutureEXT", &wine_xrPollFutureEXT},
|
|
|
|
{"xrQueryLocalizationMapsML", &wine_xrQueryLocalizationMapsML},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrQueryPerformanceMetricsCounterMETA", &wine_xrQueryPerformanceMetricsCounterMETA},
|
|
|
|
{"xrQuerySpacesFB", &wine_xrQuerySpacesFB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrQuerySystemTrackedKeyboardFB", &wine_xrQuerySystemTrackedKeyboardFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrReleaseSwapchainImage", &wine_xrReleaseSwapchainImage},
|
2021-02-26 14:42:08 +03:00
|
|
|
{"xrRequestDisplayRefreshRateFB", &wine_xrRequestDisplayRefreshRateFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrRequestExitSession", &wine_xrRequestExitSession},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrRequestMapLocalizationML", &wine_xrRequestMapLocalizationML},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrRequestSceneCaptureFB", &wine_xrRequestSceneCaptureFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrResultToString", &wine_xrResultToString},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrRetrieveSpaceQueryResultsFB", &wine_xrRetrieveSpaceQueryResultsFB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrSaveSpaceFB", &wine_xrSaveSpaceFB},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrSaveSpaceListFB", &wine_xrSaveSpaceListFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrSendVirtualKeyboardInputMETA", &wine_xrSendVirtualKeyboardInputMETA},
|
2021-02-26 14:42:08 +03:00
|
|
|
{"xrSetColorSpaceFB", &wine_xrSetColorSpaceFB},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrSetDigitalLensControlALMALENCE", &wine_xrSetDigitalLensControlALMALENCE},
|
2021-04-27 15:57:58 +03:00
|
|
|
{"xrSetEnvironmentDepthEstimationVARJO", &wine_xrSetEnvironmentDepthEstimationVARJO},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrSetEnvironmentDepthHandRemovalMETA", &wine_xrSetEnvironmentDepthHandRemovalMETA},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrSetInputDeviceActiveEXT", &wine_xrSetInputDeviceActiveEXT},
|
|
|
|
{"xrSetInputDeviceLocationEXT", &wine_xrSetInputDeviceLocationEXT},
|
|
|
|
{"xrSetInputDeviceStateBoolEXT", &wine_xrSetInputDeviceStateBoolEXT},
|
|
|
|
{"xrSetInputDeviceStateFloatEXT", &wine_xrSetInputDeviceStateFloatEXT},
|
|
|
|
{"xrSetInputDeviceStateVector2fEXT", &wine_xrSetInputDeviceStateVector2fEXT},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrSetMarkerTrackingPredictionVARJO", &wine_xrSetMarkerTrackingPredictionVARJO},
|
|
|
|
{"xrSetMarkerTrackingTimeoutVARJO", &wine_xrSetMarkerTrackingTimeoutVARJO},
|
|
|
|
{"xrSetMarkerTrackingVARJO", &wine_xrSetMarkerTrackingVARJO},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrSetPerformanceMetricsStateMETA", &wine_xrSetPerformanceMetricsStateMETA},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrSetSpaceComponentStatusFB", &wine_xrSetSpaceComponentStatusFB},
|
2023-05-06 06:43:12 +03:00
|
|
|
{"xrSetTrackingOptimizationSettingsHintQCOM", &wine_xrSetTrackingOptimizationSettingsHintQCOM},
|
|
|
|
{"xrSetViewOffsetVARJO", &wine_xrSetViewOffsetVARJO},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrSetVirtualKeyboardModelVisibilityMETA", &wine_xrSetVirtualKeyboardModelVisibilityMETA},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrShareSpacesFB", &wine_xrShareSpacesFB},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrSnapshotMarkerDetectorML", &wine_xrSnapshotMarkerDetectorML},
|
|
|
|
{"xrStartEnvironmentDepthProviderMETA", &wine_xrStartEnvironmentDepthProviderMETA},
|
|
|
|
{"xrStopEnvironmentDepthProviderMETA", &wine_xrStopEnvironmentDepthProviderMETA},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrStopHapticFeedback", &wine_xrStopHapticFeedback},
|
|
|
|
{"xrStringToPath", &wine_xrStringToPath},
|
|
|
|
{"xrStructureTypeToString", &wine_xrStructureTypeToString},
|
|
|
|
{"xrSuggestInteractionProfileBindings", &wine_xrSuggestInteractionProfileBindings},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrSuggestVirtualKeyboardLocationMETA", &wine_xrSuggestVirtualKeyboardLocationMETA},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrSyncActions", &wine_xrSyncActions},
|
|
|
|
{"xrThermalGetTemperatureTrendEXT", &wine_xrThermalGetTemperatureTrendEXT},
|
2021-12-28 17:06:02 +03:00
|
|
|
{"xrTriangleMeshBeginUpdateFB", &wine_xrTriangleMeshBeginUpdateFB},
|
|
|
|
{"xrTriangleMeshBeginVertexBufferUpdateFB", &wine_xrTriangleMeshBeginVertexBufferUpdateFB},
|
|
|
|
{"xrTriangleMeshEndUpdateFB", &wine_xrTriangleMeshEndUpdateFB},
|
|
|
|
{"xrTriangleMeshEndVertexBufferUpdateFB", &wine_xrTriangleMeshEndVertexBufferUpdateFB},
|
|
|
|
{"xrTriangleMeshGetIndexBufferFB", &wine_xrTriangleMeshGetIndexBufferFB},
|
|
|
|
{"xrTriangleMeshGetVertexBufferFB", &wine_xrTriangleMeshGetVertexBufferFB},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrTryCreateSpatialGraphStaticNodeBindingMSFT", &wine_xrTryCreateSpatialGraphStaticNodeBindingMSFT},
|
2021-08-03 19:53:18 +03:00
|
|
|
{"xrUnpersistSpatialAnchorMSFT", &wine_xrUnpersistSpatialAnchorMSFT},
|
2024-04-20 04:11:40 +03:00
|
|
|
{"xrUpdateHandMeshMSFT", &wine_xrUpdateHandMeshMSFT},
|
2024-04-19 22:08:23 +03:00
|
|
|
{"xrUpdatePassthroughColorLutMETA", &wine_xrUpdatePassthroughColorLutMETA},
|
2021-06-15 21:47:55 +03:00
|
|
|
{"xrUpdateSwapchainFB", &wine_xrUpdateSwapchainFB},
|
2020-12-30 22:35:28 +03:00
|
|
|
{"xrWaitFrame", &wine_xrWaitFrame},
|
|
|
|
{"xrWaitSwapchainImage", &wine_xrWaitSwapchainImage},
|
|
|
|
};
|
|
|
|
|
|
|
|
void *wine_xr_proc_addr(const char *name)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE(xr_dispatch_table); i++)
|
|
|
|
{
|
|
|
|
if (strcmp(xr_dispatch_table[i].name, name) == 0)
|
|
|
|
{
|
|
|
|
WINE_TRACE("Found name=%s in instance table\n", wine_dbgstr_a(name));
|
|
|
|
return xr_dispatch_table[i].func;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char * const xr_extensions[] =
|
|
|
|
{
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_ALMALENCE_digital_lens_control",
|
|
|
|
"XR_BD_controller_interaction",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EPIC_view_configuration_fov",
|
|
|
|
"XR_EXTX_overlay",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_EXT_active_action_set_priority",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EXT_conformance_automation",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_EXT_dpad_binding",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EXT_eye_gaze_interaction",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_EXT_future",
|
|
|
|
"XR_EXT_hand_interaction",
|
2021-06-15 21:47:55 +03:00
|
|
|
"XR_EXT_hand_joints_motion_range",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EXT_hand_tracking",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_EXT_hand_tracking_data_source",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EXT_hp_mixed_reality_controller",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_EXT_local_floor",
|
|
|
|
"XR_EXT_palm_pose",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EXT_performance_settings",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_EXT_plane_detection",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EXT_samsung_odyssey_controller",
|
|
|
|
"XR_EXT_thermal_query",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_EXT_user_presence",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_EXT_uuid",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_EXT_view_configuration_depth_range",
|
|
|
|
"XR_EXT_win32_appcontainer_compatible",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_FB_body_tracking",
|
2021-02-26 14:42:08 +03:00
|
|
|
"XR_FB_color_space",
|
2021-08-03 19:53:18 +03:00
|
|
|
"XR_FB_composition_layer_alpha_blend",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_composition_layer_depth_test",
|
2021-08-03 19:53:18 +03:00
|
|
|
"XR_FB_composition_layer_image_layout",
|
|
|
|
"XR_FB_composition_layer_secure_content",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_composition_layer_settings",
|
2021-02-26 14:42:08 +03:00
|
|
|
"XR_FB_display_refresh_rate",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_FB_eye_tracking_social",
|
|
|
|
"XR_FB_face_tracking",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_FB_face_tracking2",
|
2021-08-03 19:53:18 +03:00
|
|
|
"XR_FB_foveation",
|
|
|
|
"XR_FB_foveation_configuration",
|
|
|
|
"XR_FB_foveation_vulkan",
|
2021-12-28 17:06:02 +03:00
|
|
|
"XR_FB_hand_tracking_aim",
|
|
|
|
"XR_FB_hand_tracking_capsules",
|
|
|
|
"XR_FB_hand_tracking_mesh",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_haptic_amplitude_envelope",
|
|
|
|
"XR_FB_haptic_pcm",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_FB_keyboard_tracking",
|
2021-12-28 17:06:02 +03:00
|
|
|
"XR_FB_passthrough",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_passthrough_keyboard_hands",
|
|
|
|
"XR_FB_render_model",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_FB_scene",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_scene_capture",
|
2021-12-28 17:06:02 +03:00
|
|
|
"XR_FB_space_warp",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_FB_spatial_entity",
|
|
|
|
"XR_FB_spatial_entity_container",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_spatial_entity_query",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_FB_spatial_entity_sharing",
|
|
|
|
"XR_FB_spatial_entity_storage",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_spatial_entity_storage_batch",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_FB_spatial_entity_user",
|
2021-06-15 21:47:55 +03:00
|
|
|
"XR_FB_swapchain_update_state",
|
|
|
|
"XR_FB_swapchain_update_state_vulkan",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_FB_touch_controller_pro",
|
|
|
|
"XR_FB_touch_controller_proximity",
|
2021-12-28 17:06:02 +03:00
|
|
|
"XR_FB_triangle_mesh",
|
|
|
|
"XR_HTCX_vive_tracker_interaction",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_HTC_anchor",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_HTC_facial_tracking",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_HTC_foveation",
|
|
|
|
"XR_HTC_hand_interaction",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_HTC_passthrough",
|
2021-02-26 14:42:08 +03:00
|
|
|
"XR_HTC_vive_cosmos_controller_interaction",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_HTC_vive_focus3_controller_interaction",
|
|
|
|
"XR_HTC_vive_wrist_tracker_interaction",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_HUAWEI_controller_interaction",
|
|
|
|
"XR_KHR_D3D11_enable",
|
|
|
|
"XR_KHR_D3D12_enable",
|
2021-02-26 14:42:08 +03:00
|
|
|
"XR_KHR_binding_modification",
|
|
|
|
"XR_KHR_composition_layer_color_scale_bias",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_KHR_composition_layer_cube",
|
|
|
|
"XR_KHR_composition_layer_cylinder",
|
|
|
|
"XR_KHR_composition_layer_depth",
|
|
|
|
"XR_KHR_composition_layer_equirect",
|
2021-02-26 14:42:08 +03:00
|
|
|
"XR_KHR_composition_layer_equirect2",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_KHR_locate_spaces",
|
|
|
|
"XR_KHR_maintenance1",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_KHR_opengl_enable",
|
2021-08-03 19:53:18 +03:00
|
|
|
"XR_KHR_swapchain_usage_input_attachment_bit",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_KHR_visibility_mask",
|
|
|
|
"XR_KHR_vulkan_enable",
|
2021-02-26 20:24:23 +03:00
|
|
|
"XR_KHR_vulkan_enable2",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_KHR_vulkan_swapchain_format_list",
|
|
|
|
"XR_KHR_win32_convert_performance_counter_time",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_META_automatic_layer_filter",
|
|
|
|
"XR_META_environment_depth",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_META_foveation_eye_tracked",
|
|
|
|
"XR_META_headset_id",
|
|
|
|
"XR_META_local_dimming",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_META_passthrough_color_lut",
|
|
|
|
"XR_META_passthrough_preferences",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_META_performance_metrics",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_META_recommended_layer_resolution",
|
|
|
|
"XR_META_spatial_entity_mesh",
|
|
|
|
"XR_META_touch_controller_plus",
|
|
|
|
"XR_META_virtual_keyboard",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_META_vulkan_swapchain_create_info",
|
|
|
|
"XR_ML_frame_end_info",
|
|
|
|
"XR_ML_global_dimmer",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_ML_localization_map",
|
|
|
|
"XR_ML_marker_understanding",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_ML_ml2_controller_interaction",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_ML_user_calibration",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_MNDX_force_feedback_curl",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_MND_headless",
|
|
|
|
"XR_MND_swapchain_usage_input_attachment_bit",
|
2021-06-15 21:47:55 +03:00
|
|
|
"XR_MSFT_composition_layer_reprojection",
|
2021-02-26 14:42:08 +03:00
|
|
|
"XR_MSFT_controller_model",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_MSFT_first_person_observer",
|
|
|
|
"XR_MSFT_hand_interaction",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_MSFT_hand_tracking_mesh",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_MSFT_holographic_window_attachment",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_MSFT_scene_marker",
|
2021-06-15 21:47:55 +03:00
|
|
|
"XR_MSFT_scene_understanding",
|
|
|
|
"XR_MSFT_scene_understanding_serialization",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_MSFT_secondary_view_configuration",
|
|
|
|
"XR_MSFT_spatial_anchor",
|
2021-08-03 19:53:18 +03:00
|
|
|
"XR_MSFT_spatial_anchor_persistence",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_MSFT_spatial_graph_bridge",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_MSFT_unbounded_reference_space",
|
|
|
|
"XR_OCULUS_android_session_state_enable",
|
2021-06-15 21:47:55 +03:00
|
|
|
"XR_OCULUS_audio_device_guid",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_OCULUS_external_camera",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_OPPO_controller_interaction",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_QCOM_tracking_optimization_settings",
|
|
|
|
"XR_ULTRALEAP_hand_tracking_forearm",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_VALVE_analog_threshold",
|
2021-04-27 15:57:58 +03:00
|
|
|
"XR_VARJO_composition_layer_depth_test",
|
|
|
|
"XR_VARJO_environment_depth_estimation",
|
|
|
|
"XR_VARJO_foveated_rendering",
|
2024-04-20 04:11:40 +03:00
|
|
|
"XR_VARJO_marker_tracking",
|
2020-12-30 22:35:28 +03:00
|
|
|
"XR_VARJO_quad_views",
|
2023-05-06 06:43:12 +03:00
|
|
|
"XR_VARJO_view_offset",
|
2024-04-19 22:08:23 +03:00
|
|
|
"XR_VARJO_xr4_controller_interaction",
|
|
|
|
"XR_YVR_controller_interaction",
|
2020-12-30 22:35:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
BOOL wine_xr_extension_supported(const char *name)
|
|
|
|
{
|
|
|
|
unsigned int i;
|
|
|
|
for (i = 0; i < ARRAY_SIZE(xr_extensions); i++)
|
|
|
|
{
|
|
|
|
if (strcmp(xr_extensions[i], name) == 0)
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
return FALSE;
|
|
|
|
}
|