Package org.lwjgl.openxr
Class KHRWin32ConvertPerformanceCounterTime
- java.lang.Object
-
- org.lwjgl.openxr.KHRWin32ConvertPerformanceCounterTime
-
public class KHRWin32ConvertPerformanceCounterTime extends java.lang.ObjectThe KHR_win32_convert_performance_counter_time extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringXR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAMEThe extension name.static intXR_KHR_win32_convert_performance_counter_time_SPEC_VERSIONThe extension specification version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnxrConvertTimeToWin32PerformanceCounterKHR(org.lwjgl.openxr.XrInstance instance, long time, long performanceCounter)Unsafe version of:ConvertTimeToWin32PerformanceCounterKHRstatic intnxrConvertWin32PerformanceCounterToTimeKHR(org.lwjgl.openxr.XrInstance instance, long performanceCounter, long time)Unsafe version of:ConvertWin32PerformanceCounterToTimeKHRstatic intxrConvertTimeToWin32PerformanceCounterKHR(org.lwjgl.openxr.XrInstance instance, long time, org.lwjgl.system.windows.LARGE_INTEGER performanceCounter)Convert XrTime to Win32QueryPerformanceCountertime.static intxrConvertWin32PerformanceCounterToTimeKHR(org.lwjgl.openxr.XrInstance instance, org.lwjgl.system.windows.LARGE_INTEGER performanceCounter, java.nio.LongBuffer time)Convert Win32QueryPerformanceCountertime to XrTime.
-
-
-
Field Detail
-
XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION
public static final int XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME
public static final java.lang.String XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
-
Method Detail
-
nxrConvertWin32PerformanceCounterToTimeKHR
public static int nxrConvertWin32PerformanceCounterToTimeKHR(org.lwjgl.openxr.XrInstance instance, long performanceCounter, long time)Unsafe version of:ConvertWin32PerformanceCounterToTimeKHR
-
xrConvertWin32PerformanceCounterToTimeKHR
public static int xrConvertWin32PerformanceCounterToTimeKHR(org.lwjgl.openxr.XrInstance instance, org.lwjgl.system.windows.LARGE_INTEGER performanceCounter, java.nio.LongBuffer time)Convert Win32QueryPerformanceCountertime to XrTime.C Specification
To convert from a Windows performance counter time stamp to
XrTime, call:XrResult xrConvertWin32PerformanceCounterToTimeKHR( XrInstance instance, const LARGE_INTEGER* performanceCounter, XrTime* time);Description
The
ConvertWin32PerformanceCounterToTimeKHRfunction converts a time stamp obtained by theQueryPerformanceCounterWindows function to the equivalentXrTime.If the output
timecannot represent the inputperformanceCounter, the runtime must returnERROR_TIME_INVALID.Valid Usage (Implicit)
- The
XR_KHR_win32_convert_performance_counter_timeextension must be enabled prior to callingConvertWin32PerformanceCounterToTimeKHR instancemust be a validXrInstancehandleperformanceCountermust be a pointer to a validLARGE_INTEGERvaluetimemust be a pointer to anXrTimevalue
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
instance- anXrInstancehandle previously created withCreateInstance.performanceCounter- a time returned byQueryPerformanceCounter.time- the resultingXrTimethat is equivalent to theperformanceCounter.
- The
-
nxrConvertTimeToWin32PerformanceCounterKHR
public static int nxrConvertTimeToWin32PerformanceCounterKHR(org.lwjgl.openxr.XrInstance instance, long time, long performanceCounter)Unsafe version of:ConvertTimeToWin32PerformanceCounterKHR
-
xrConvertTimeToWin32PerformanceCounterKHR
public static int xrConvertTimeToWin32PerformanceCounterKHR(org.lwjgl.openxr.XrInstance instance, long time, org.lwjgl.system.windows.LARGE_INTEGER performanceCounter)Convert XrTime to Win32QueryPerformanceCountertime.C Specification
To convert from
XrTimeto a Windows performance counter time stamp, call:XrResult xrConvertTimeToWin32PerformanceCounterKHR( XrInstance instance, XrTime time, LARGE_INTEGER* performanceCounter);Description
The
ConvertTimeToWin32PerformanceCounterKHRfunction converts anXrTimeto time as if generated by theQueryPerformanceCounterWindows function.If the output
performanceCountercannot represent the inputtime, the runtime must returnERROR_TIME_INVALID.Valid Usage (Implicit)
- The
XR_KHR_win32_convert_performance_counter_timeextension must be enabled prior to callingConvertTimeToWin32PerformanceCounterKHR instancemust be a validXrInstancehandleperformanceCountermust be a pointer to aLARGE_INTEGERvalue
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
instance- anXrInstancehandle previously created withCreateInstance.time- anXrTime.performanceCounter- the resulting Windows performance counter time stamp that is equivalent to thetime.
- The
-
-