Safe Haskell | None |
---|---|
Language | Haskell2010 |
Name
XR_KHR_convert_timespec_time - instance extension
Specification
See XR_KHR_convert_timespec_time in the main specification for complete information.
Registered Extension Number
37
Revision
1
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
convertTimeToTimespecTimeKHR
, convertTimespecTimeToTimeKHR
Document Notes
For more information, see the OpenXR Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- convertTimeToTimespecTimeKHR :: forall io. MonadIO io => Instance -> Time -> io ("timespecTime" ::: Timespec)
- convertTimespecTimeToTimeKHR :: forall io. MonadIO io => Instance -> ("timespecTime" ::: Timespec) -> io Time
- type KHR_convert_timespec_time_SPEC_VERSION = 1
- pattern KHR_convert_timespec_time_SPEC_VERSION :: forall a. Integral a => a
- type KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME = "XR_KHR_convert_timespec_time"
- pattern KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
- data Timespec = Timespec {}
Documentation
convertTimeToTimespecTimeKHR Source #
:: forall io. MonadIO io | |
=> Instance |
|
-> Time |
|
-> io ("timespecTime" ::: Timespec) |
xrConvertTimeToTimespecTimeKHR - Convert XrTime to timespec monotonic time
Parameter Descriptions
Description
The convertTimeToTimespecTimeKHR
function converts an
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime
to time as if generated by clock_gettime
.
If the output unixTime
cannot represent the input time
, the runtime
must return ERROR_TIME_INVALID
.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
convertTimeToTimespecTimeKHR
-
instance
must be a validInstance
handle -
timespecTime
must be a pointer to atimespec
value
Return Codes
See Also
Instance
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime
convertTimespecTimeToTimeKHR Source #
:: forall io. MonadIO io | |
=> Instance |
|
-> ("timespecTime" ::: Timespec) | |
-> io Time |
xrConvertTimespecTimeToTimeKHR - Convert timespec monotonic time to XrTime
Parameter Descriptions
Description
The convertTimespecTimeToTimeKHR
function converts a time obtained by
the clock_gettime
function to the equivalent
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime.
If the output time
cannot represent the input unixTime
, the runtime
must return ERROR_TIME_INVALID
.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
convertTimespecTimeToTimeKHR
-
instance
must be a validInstance
handle -
timespecTime
must be a pointer to a validtimespec
value -
time
must be a pointer to an https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime value
Return Codes
See Also
Instance
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime
pattern KHR_convert_timespec_time_SPEC_VERSION :: forall a. Integral a => a Source #
type KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME = "XR_KHR_convert_timespec_time" Source #
pattern KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #
Instances
Eq Timespec Source # | |
Ord Timespec Source # | |
Read Timespec Source # | |
Show Timespec Source # | |
Generic Timespec Source # | |
Storable Timespec Source # | |
type Rep Timespec Source # | |
Defined in OpenXR.Extensions.XR_KHR_convert_timespec_time type Rep Timespec = D1 ('MetaData "Timespec" "OpenXR.Extensions.XR_KHR_convert_timespec_time" "openxr-0.1-KRXNGrEwK3v3sYc0dmzQSi" 'False) (C1 ('MetaCons "Timespec" 'PrefixI 'True) (S1 ('MetaSel ('Just "tv_sec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CTime) :*: S1 ('MetaSel ('Just "tv_nsec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int64))) |