Class KHRWin32ConvertPerformanceCounterTime


  • public class KHRWin32ConvertPerformanceCounterTime
    extends java.lang.Object
    The KHR_win32_convert_performance_counter_time extension.
    • 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)
      • xrConvertWin32PerformanceCounterToTimeKHR

        public static int xrConvertWin32PerformanceCounterToTimeKHR​(org.lwjgl.openxr.XrInstance instance,
                                                                    org.lwjgl.system.windows.LARGE_INTEGER performanceCounter,
                                                                    java.nio.LongBuffer time)
        Convert Win32 QueryPerformanceCounter time 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 ConvertWin32PerformanceCounterToTimeKHR function converts a time stamp obtained by the QueryPerformanceCounter Windows function to the equivalent XrTime.

        If the output time cannot represent the input performanceCounter, the runtime must return ERROR_TIME_INVALID.

        Valid Usage (Implicit)
        Return Codes
        On success, this command returns
        On failure, this command returns
        Parameters:
        instance - an XrInstance handle previously created with CreateInstance.
        performanceCounter - a time returned by QueryPerformanceCounter.
        time - the resulting XrTime that is equivalent to the performanceCounter.
      • nxrConvertTimeToWin32PerformanceCounterKHR

        public static int nxrConvertTimeToWin32PerformanceCounterKHR​(org.lwjgl.openxr.XrInstance instance,
                                                                     long time,
                                                                     long performanceCounter)