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

OpenXR.Extensions.XR_KHR_android_thread_settings

Description

Name

XR_KHR_android_thread_settings - instance extension

Specification

See XR_KHR_android_thread_settings in the main specification for complete information.

Registered Extension Number

4

Revision

5

Extension and Version Dependencies

  • Requires OpenXR 1.0

See Also

AndroidThreadTypeKHR, setAndroidApplicationThreadKHR

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

setAndroidApplicationThreadKHR Source #

Arguments

:: forall io. MonadIO io 
=> Session

session is a valid Session handle.

-> AndroidThreadTypeKHR

threadType is a classification of the declared thread allowing the XR runtime to apply the relevant priority and attributes. If such settings fail, the runtime must return ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR.

-> ("threadId" ::: Word32)

threadId is the kernel thread ID of the declared thread, as returned by gettid() or android.os.process.myTid(). If the thread ID is invalid, the runtime must return ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR.

-> io Result 

xrSetAndroidApplicationThreadKHR - declare threads to be of a certain priority type

Parameter Descriptions

Description

setAndroidApplicationThreadKHR allows to declare an XR-critical thread and to classify it.

Valid Usage (Implicit)

Return Codes

Success
Failure

See Also

AndroidThreadTypeKHR, Session

newtype AndroidThreadTypeKHR Source #

XrAndroidThreadTypeKHR - Enum describing Android thread types

Enumerants

See Also

setAndroidApplicationThreadKHR

Bundled Patterns

pattern ANDROID_THREAD_TYPE_APPLICATION_MAIN_KHR :: AndroidThreadTypeKHR

ANDROID_THREAD_TYPE_APPLICATION_MAIN_KHR hints the XR runtime that the thread is doing background CPU tasks

pattern ANDROID_THREAD_TYPE_APPLICATION_WORKER_KHR :: AndroidThreadTypeKHR

ANDROID_THREAD_TYPE_APPLICATION_WORKER_KHR hints the XR runtime that the thread is doing time critical CPU tasks

pattern ANDROID_THREAD_TYPE_RENDERER_MAIN_KHR :: AndroidThreadTypeKHR

ANDROID_THREAD_TYPE_RENDERER_MAIN_KHR hints the XR runtime that the thread is doing background graphics device tasks

pattern ANDROID_THREAD_TYPE_RENDERER_WORKER_KHR :: AndroidThreadTypeKHR

ANDROID_THREAD_TYPE_RENDERER_WORKER_KHR hints the XR runtime that the thread is doing time critical graphics device tasks

Instances

Instances details
Eq AndroidThreadTypeKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_android_thread_settings

Ord AndroidThreadTypeKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_android_thread_settings

Read AndroidThreadTypeKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_android_thread_settings

Show AndroidThreadTypeKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_android_thread_settings

Storable AndroidThreadTypeKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_android_thread_settings

Zero AndroidThreadTypeKHR Source # 
Instance details

Defined in OpenXR.Extensions.XR_KHR_android_thread_settings

type KHR_ANDROID_THREAD_SETTINGS_EXTENSION_NAME = "XR_KHR_android_thread_settings" Source #