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

OpenXR.Extensions.XR_KHR_win32_convert_performance_counter_time

Description

Name

XR_KHR_win32_convert_performance_counter_time - instance extension

Specification

See XR_KHR_win32_convert_performance_counter_time in the main specification for complete information.

Registered Extension Number

36

Revision

1

Extension and Version Dependencies

  • Requires OpenXR 1.0

See Also

convertTimeToWin32PerformanceCounterKHR, convertWin32PerformanceCounterToTimeKHR

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

convertTimeToWin32PerformanceCounterKHR 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 ("performanceCounter" ::: LARGE_INTEGER) 

xrConvertTimeToWin32PerformanceCounterKHR - Convert XrTime to Win32 QueryPerformanceCounter time

Parameter Descriptions

Description

The convertTimeToWin32PerformanceCounterKHR function converts an https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrTime to time as if generated by the QueryPerformanceCounter Windows function.

If the output performanceCounter cannot represent the input time, 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

convertWin32PerformanceCounterToTimeKHR Source #

Arguments

:: forall io. MonadIO io 
=> Instance

instance is an Instance handle previously created with createInstance.

-> ("performanceCounter" ::: LARGE_INTEGER)

performanceCounter is a time returned by QueryPerformanceCounter.

-> io Time 

xrConvertWin32PerformanceCounterToTimeKHR - Convert Win32 QueryPerformanceCounter time to XrTime

Parameter Descriptions

Description

The convertWin32PerformanceCounterToTimeKHR function converts a time stamp obtained by the QueryPerformanceCounter Windows 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 performanceCounter, 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_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME = "XR_KHR_win32_convert_performance_counter_time" Source #