This extension provides two functions for converting between the Windows performance counter (QPC) time stamps and XrTime. The ConvertWin32PerformanceCounterToTimeKHR function converts from Windows performance counter time stamps to XrTime, while the ConvertTimeToWin32PerformanceCounterKHR function converts XrTime to Windows performance counter time stamps. The primary use case for this functionality is to be able to synchronize events between the local system and the OpenXR system.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME
The extension name. |
| public static final int | XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION
The extension specification version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, long time, long performanceCounter)
Unsafe version of: |
| public static int | nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, long performanceCounter, long time)
Unsafe version of: |
| public static int | xrConvertTimeToWin32PerformanceCounterKHR(XrInstance
an instance, long XrInstance handle previously created with CreateInstance.an time, LARGE_INTEGER XrTime.the resulting Windows performance counter time stamp that is equivalent to the performanceCounter)time.Convert XrTime to Win32 |
| public static int | xrConvertWin32PerformanceCounterToTimeKHR(XrInstance
an instance, LARGE_INTEGER XrInstance handle previously created with CreateInstance.a time returned by performanceCounter, LongBuffer QueryPerformanceCounter.the resulting time)XrTime that is equivalent to the performanceCounter.Convert Win32 |
| XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME The extension name. | |
| XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION The extension specification version. | |
| KHRWin32ConvertPerformanceCounterTime | back to summary |
|---|---|
| protected KHRWin32ConvertPerformanceCounterTime() | |
| nxrConvertTimeToWin32PerformanceCounterKHR | back to summary |
|---|---|
| public static int nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, long time, long performanceCounter) Unsafe version of: | |
| nxrConvertWin32PerformanceCounterToTimeKHR | back to summary |
|---|---|
| public static int nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, long performanceCounter, long time) Unsafe version of: | |
| xrConvertTimeToWin32PerformanceCounterKHR | back to summary |
|---|---|
| public static int xrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, long time, LARGE_INTEGER performanceCounter) Convert XrTime to Win32 C SpecificationTo convert from
DescriptionThe If the output Valid Usage (Implicit)
Return Codes
| |
| xrConvertWin32PerformanceCounterToTimeKHR | back to summary |
|---|---|
| public static int xrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, LARGE_INTEGER performanceCounter, LongBuffer time) Convert Win32 C SpecificationTo convert from a Windows performance counter time stamp to
DescriptionThe If the output Valid Usage (Implicit)
Return Codes
| |