/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/OpenXRPlugin/Graphics/Implementation/OpenXRGraphicsBinding.cpp
31 строка
994 B
Sanakan8472
OpenXR plugin fixes (#1800)
30 янв 2026, 18:51
Не верифицирован
30 янв 2026, 18:51
52fc455
Код
Авторство
О чём код?
#include <OpenXRPlugin/OpenXRPluginPCH.h> #include <OpenXRPlugin/Graphics/OpenXRGraphicsBinding.h> #include <OpenXRPlugin/Graphics/OpenXRGraphicsBindingD3D11.h> #include <OpenXRPlugin/Graphics/OpenXRGraphicsBindingVulkan.h> #include <Foundation/Logging/Log.h> #include <RendererFoundation/Device/Device.h> ezUniquePtr<ezOpenXRGraphicsBinding> ezOpenXRGraphicsBinding::Create(ezOpenXR* pOpenXR, ezGALDevice* pDevice) { const ezStringView sRenderer = pDevice->GetRenderer(); #ifdef BUILDSYSTEM_ENABLE_VULKAN_SUPPORT if (sRenderer == "Vulkan") { ezLog::Info("OpenXR: Creating Vulkan graphics binding"); return EZ_DEFAULT_NEW(ezOpenXRGraphicsBindingVulkan, pOpenXR); } #endif #if EZ_ENABLED(EZ_PLATFORM_WINDOWS) if (sRenderer == "DX11") { ezLog::Info("OpenXR: Creating D3D11 graphics binding"); return EZ_DEFAULT_NEW(ezOpenXRGraphicsBindingD3D11); } #endif ezLog::Error("OpenXR: No graphics binding available for renderer '{}'", sRenderer); return nullptr; }