openxr-0.1: Bindings to the OpenXR API
Safe HaskellNone
LanguageHaskell2010

OpenXR.Extensions.XR_KHR_convert_timespec_time

Description

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

Documentation

convertTimeToTimespecTimeKHR Source #

Arguments

:: forall io. MonadIO io 
=> Instance

instance is an Instance handle previously created with createInstance.

-> Time

time is an https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime.

-> 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)

  • instance must be a valid Instance handle
  • timespecTime must be a pointer to a timespec value

Return Codes

Success
Failure

See Also

Instance, https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime

convertTimespecTimeToTimeKHR Source #

Arguments

:: forall io. MonadIO io 
=> Instance

instance is an Instance handle previously created with createInstance.

-> ("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)

Return Codes

Success
Failure

See Also

Instance, https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime

type KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME = "XR_KHR_convert_timespec_time" Source #

data Timespec Source #

Constructors

Timespec 

Fields

Instances

Instances details
Eq Timespec Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_convert_timespec_time

Ord Timespec Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_convert_timespec_time

Read Timespec Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_convert_timespec_time

Show Timespec Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_convert_timespec_time

Generic Timespec Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_convert_timespec_time

Associated Types

type Rep Timespec :: Type -> Type #

Methods

from :: Timespec -> Rep Timespec x #

to :: Rep Timespec x -> Timespec #

Storable Timespec Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_convert_timespec_time

type Rep Timespec Source # 
Instance details

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)))