@@ -1319,6 +1319,48 @@ namespace RUNTIME_NAMESPACE {
13191319 return result;
13201320 }
13211321
1322+ XrResult XRAPI_CALL xrConvertTimespecTimeToTimeKHR (XrInstance instance, const struct timespec * timespecTime, XrTime* time) {
1323+ TraceLocalActivity (local);
1324+ TraceLoggingWriteStart (local, " xrConvertTimespecTimeToTimeKHR" );
1325+
1326+ XrResult result;
1327+ try {
1328+ result = RUNTIME_NAMESPACE::GetInstance ()->xrConvertTimespecTimeToTimeKHR (instance, timespecTime, time);
1329+ } catch (std::exception& exc) {
1330+ TraceLoggingWriteTagged (local, " xrConvertTimespecTimeToTimeKHR_Error" , TLArg (exc.what (), " Error" ));
1331+ ErrorLog (" xrConvertTimespecTimeToTimeKHR: %s\n " , exc.what ());
1332+ result = XR_ERROR_RUNTIME_FAILURE;
1333+ }
1334+
1335+ TraceLoggingWriteStop (local, " xrConvertTimespecTimeToTimeKHR" , TLArg (xr::ToCString (result), " Result" ));
1336+ if (XR_FAILED (result)) {
1337+ ErrorLog (" xrConvertTimespecTimeToTimeKHR failed with %s\n " , xr::ToCString (result));
1338+ }
1339+
1340+ return result;
1341+ }
1342+
1343+ XrResult XRAPI_CALL xrConvertTimeToTimespecTimeKHR (XrInstance instance, XrTime time, struct timespec * timespecTime) {
1344+ TraceLocalActivity (local);
1345+ TraceLoggingWriteStart (local, " xrConvertTimeToTimespecTimeKHR" );
1346+
1347+ XrResult result;
1348+ try {
1349+ result = RUNTIME_NAMESPACE::GetInstance ()->xrConvertTimeToTimespecTimeKHR (instance, time, timespecTime);
1350+ } catch (std::exception& exc) {
1351+ TraceLoggingWriteTagged (local, " xrConvertTimeToTimespecTimeKHR_Error" , TLArg (exc.what (), " Error" ));
1352+ ErrorLog (" xrConvertTimeToTimespecTimeKHR: %s\n " , exc.what ());
1353+ result = XR_ERROR_RUNTIME_FAILURE;
1354+ }
1355+
1356+ TraceLoggingWriteStop (local, " xrConvertTimeToTimespecTimeKHR" , TLArg (xr::ToCString (result), " Result" ));
1357+ if (XR_FAILED (result)) {
1358+ ErrorLog (" xrConvertTimeToTimespecTimeKHR failed with %s\n " , xr::ToCString (result));
1359+ }
1360+
1361+ return result;
1362+ }
1363+
13221364 XrResult XRAPI_CALL xrCreateVulkanInstanceKHR (XrInstance instance, const XrVulkanInstanceCreateInfoKHR* createInfo, VkInstance* vulkanInstance, VkResult* vulkanResult) {
13231365 TraceLocalActivity (local);
13241366 TraceLoggingWriteStart (local, " xrCreateVulkanInstanceKHR" );
@@ -2062,6 +2104,12 @@ namespace RUNTIME_NAMESPACE {
20622104 else if (has_XR_KHR_win32_convert_performance_counter_time && apiName == " xrConvertTimeToWin32PerformanceCounterKHR" ) {
20632105 *function = reinterpret_cast <PFN_xrVoidFunction>(RUNTIME_NAMESPACE::xrConvertTimeToWin32PerformanceCounterKHR);
20642106 }
2107+ else if (has_XR_KHR_convert_timespec_time && apiName == " xrConvertTimespecTimeToTimeKHR" ) {
2108+ *function = reinterpret_cast <PFN_xrVoidFunction>(RUNTIME_NAMESPACE::xrConvertTimespecTimeToTimeKHR);
2109+ }
2110+ else if (has_XR_KHR_convert_timespec_time && apiName == " xrConvertTimeToTimespecTimeKHR" ) {
2111+ *function = reinterpret_cast <PFN_xrVoidFunction>(RUNTIME_NAMESPACE::xrConvertTimeToTimespecTimeKHR);
2112+ }
20652113 else if (has_XR_KHR_vulkan_enable2 && apiName == " xrCreateVulkanInstanceKHR" ) {
20662114 *function = reinterpret_cast <PFN_xrVoidFunction>(RUNTIME_NAMESPACE::xrCreateVulkanInstanceKHR);
20672115 }
@@ -2181,6 +2229,9 @@ namespace RUNTIME_NAMESPACE {
21812229 else if (extensionName == " XR_KHR_win32_convert_performance_counter_time" ) {
21822230 has_XR_KHR_win32_convert_performance_counter_time = true ;
21832231 }
2232+ else if (extensionName == " XR_KHR_convert_timespec_time" ) {
2233+ has_XR_KHR_convert_timespec_time = true ;
2234+ }
21842235 else if (extensionName == " XR_FB_display_refresh_rate" ) {
21852236 has_XR_FB_display_refresh_rate = true ;
21862237 }
0 commit comments