Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_XrContext.cpp
| Show First 20 Lines • Show All 414 Lines • ▼ Show 20 Lines | void GHOST_XrContext::getExtensionsToEnable( | ||||
| /* Add graphics binding extensions (may be multiple ones, we'll settle for one to use later, once | /* Add graphics binding extensions (may be multiple ones, we'll settle for one to use later, once | ||||
| * we have more info about the runtime). */ | * we have more info about the runtime). */ | ||||
| for (GHOST_TXrGraphicsBinding type : graphics_binding_types) { | for (GHOST_TXrGraphicsBinding type : graphics_binding_types) { | ||||
| const char *gpu_binding = openxr_ext_name_from_wm_gpu_binding(type); | const char *gpu_binding = openxr_ext_name_from_wm_gpu_binding(type); | ||||
| assert(openxr_extension_is_available(m_oxr->extensions, gpu_binding)); | assert(openxr_extension_is_available(m_oxr->extensions, gpu_binding)); | ||||
| r_ext_names.push_back(gpu_binding); | r_ext_names.push_back(gpu_binding); | ||||
| } | } | ||||
| #if defined(WITH_GL_EGL) | |||||
| assert(openxr_extension_is_available(m_oxr->extensions, XR_MNDX_EGL_ENABLE_EXTENSION_NAME)); | |||||
| r_ext_names.push_back(XR_MNDX_EGL_ENABLE_EXTENSION_NAME); | |||||
| #endif | |||||
| for (const std::string_view &ext : try_ext) { | for (const std::string_view &ext : try_ext) { | ||||
| if (openxr_extension_is_available(m_oxr->extensions, ext)) { | if (openxr_extension_is_available(m_oxr->extensions, ext)) { | ||||
| r_ext_names.push_back(ext.data()); | r_ext_names.push_back(ext.data()); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines | |||||