Class KHRConvertTimespecTime


  • public class KHRConvertTimespecTime
    extends java.lang.Object
    The KHR_convert_timespec_time extension.
    • Field Detail

      • XR_KHR_convert_timespec_time_SPEC_VERSION

        public static final int XR_KHR_convert_timespec_time_SPEC_VERSION
        The extension specification version.
        See Also:
        Constant Field Values
      • XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME

        public static final java.lang.String XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME
        The extension name.
        See Also:
        Constant Field Values
    • Method Detail

      • nxrConvertTimespecTimeToTimeKHR

        public static int nxrConvertTimespecTimeToTimeKHR​(org.lwjgl.openxr.XrInstance instance,
                                                          long unixTime,
                                                          long time)
        Unsafe version of: ConvertTimespecTimeToTimeKHR
      • xrConvertTimespecTimeToTimeKHR

        public static int xrConvertTimespecTimeToTimeKHR​(org.lwjgl.openxr.XrInstance instance,
                                                         long unixTime,
                                                         java.nio.LongBuffer time)
        Convert timespec monotonic time to XrTime.
        C Specification

        To convert from timespec monotonic time to XrTime, call:

        
         XrResult xrConvertTimespecTimeToTimeKHR(
             XrInstance                                  instance,
             const struct timespec*                      unixTime,
             XrTime*                                     time);
        Description

        The ConvertTimespecTimeToTimeKHR function converts a time obtained by the clock_gettime function to the equivalent XrTime.

        If the output time cannot represent the input unixTime, 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.
        unixTime - a timespec obtained from clock_gettime with CLOCK_MONOTONIC.
        time - the resulting XrTime that is equivalent to the unixTime.