mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
st/oxr: Add XR_KHR_loader_init and ..._android extension
This commit is contained in:
parent
1b51cbd1a7
commit
142a9b4cb5
|
@ -11,6 +11,8 @@ from pathlib import Path
|
|||
# Keep sorted.
|
||||
EXTENSIONS = (
|
||||
['XR_KHR_android_create_instance', 'XR_USE_PLATFORM_ANDROID'],
|
||||
['XR_KHR_loader_init', 'XR_USE_PLATFORM_ANDROID'],
|
||||
['XR_KHR_loader_init_android', 'OXR_HAVE_KHR_loader_init', 'XR_USE_PLATFORM_ANDROID'],
|
||||
['XR_KHR_convert_timespec_time', 'XR_USE_TIMESPEC'],
|
||||
['XR_KHR_opengl_enable', 'XR_USE_GRAPHICS_API_OPENGL'],
|
||||
['XR_KHR_opengl_es_enable', 'XR_USE_GRAPHICS_API_OPENGL_ES'],
|
||||
|
|
|
@ -31,6 +31,28 @@
|
|||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* XR_KHR_loader_init
|
||||
*/
|
||||
#if defined(XR_KHR_loader_init) && defined(XR_USE_PLATFORM_ANDROID)
|
||||
#define OXR_HAVE_KHR_loader_init
|
||||
#define OXR_EXTENSION_SUPPORT_KHR_loader_init(_) _(KHR_loader_init, KHR_LOADER_INIT)
|
||||
#else
|
||||
#define OXR_EXTENSION_SUPPORT_KHR_loader_init(_)
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* XR_KHR_loader_init_android
|
||||
*/
|
||||
#if defined(XR_KHR_loader_init_android) && defined(OXR_HAVE_KHR_loader_init) && defined(XR_USE_PLATFORM_ANDROID)
|
||||
#define OXR_HAVE_KHR_loader_init_android
|
||||
#define OXR_EXTENSION_SUPPORT_KHR_loader_init_android(_) _(KHR_loader_init_android, KHR_LOADER_INIT_ANDROID)
|
||||
#else
|
||||
#define OXR_EXTENSION_SUPPORT_KHR_loader_init_android(_)
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* XR_KHR_convert_timespec_time
|
||||
*/
|
||||
|
@ -247,6 +269,8 @@
|
|||
// clang-format off
|
||||
#define OXR_EXTENSION_SUPPORT_GENERATE(_) \
|
||||
OXR_EXTENSION_SUPPORT_KHR_android_create_instance(_) \
|
||||
OXR_EXTENSION_SUPPORT_KHR_loader_init(_) \
|
||||
OXR_EXTENSION_SUPPORT_KHR_loader_init_android(_) \
|
||||
OXR_EXTENSION_SUPPORT_KHR_convert_timespec_time(_) \
|
||||
OXR_EXTENSION_SUPPORT_KHR_opengl_enable(_) \
|
||||
OXR_EXTENSION_SUPPORT_KHR_opengl_es_enable(_) \
|
||||
|
|
Loading…
Reference in a new issue