Package org.lwjgl.openxr
Class KHRConvertTimespecTime
- java.lang.Object
-
- org.lwjgl.openxr.KHRConvertTimespecTime
-
public class KHRConvertTimespecTime extends java.lang.ObjectThe KHR_convert_timespec_time extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringXR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAMEThe extension name.static intXR_KHR_convert_timespec_time_SPEC_VERSIONThe extension specification version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnxrConvertTimespecTimeToTimeKHR(org.lwjgl.openxr.XrInstance instance, long unixTime, long time)Unsafe version of:ConvertTimespecTimeToTimeKHRstatic intxrConvertTimespecTimeToTimeKHR(org.lwjgl.openxr.XrInstance instance, long unixTime, java.nio.LongBuffer time)Convert timespec monotonic time to XrTime.static intxrConvertTimeToTimespecTimeKHR(org.lwjgl.openxr.XrInstance instance, long time, long timespecTime)Convert XrTime to timespec monotonic time.
-
-
-
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
ConvertTimespecTimeToTimeKHRfunction converts a time obtained by theclock_gettimefunction to the equivalentXrTime.If the output
timecannot represent the inputunixTime, the runtime must returnERROR_TIME_INVALID.Valid Usage (Implicit)
- The
XR_KHR_convert_timespec_timeextension must be enabled prior to callingConvertTimespecTimeToTimeKHR instancemust be a validXrInstancehandleunixTimemust be a pointer to a validtimespecvaluetimemust be a pointer to anXrTimevalue
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
instance- anXrInstancehandle previously created withCreateInstance.unixTime- atimespecobtained fromclock_gettimewithCLOCK_MONOTONIC.time- the resultingXrTimethat is equivalent to theunixTime.
- The
-
xrConvertTimeToTimespecTimeKHR
public static int xrConvertTimeToTimespecTimeKHR(org.lwjgl.openxr.XrInstance instance, long time, long timespecTime)Convert XrTime to timespec monotonic time.C Specification
To convert from
XrTimeto timespec monotonic time, call:XrResult xrConvertTimeToTimespecTimeKHR( XrInstance instance, XrTime time, struct timespec* timespecTime);Description
The
ConvertTimeToTimespecTimeKHRfunction converts anXrTimeto time as if generated byclock_gettime.If the output
unixTimecannot represent the inputtime, the runtime must returnERROR_TIME_INVALID.Valid Usage (Implicit)
- The
XR_KHR_convert_timespec_timeextension must be enabled prior to callingConvertTimeToTimespecTimeKHR instancemust be a validXrInstancehandletimespecTimemust be a pointer to atimespecvalue
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
instance- anXrInstancehandle previously created withCreateInstance.time- anXrTime.
- The
-
-