/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/UnitTests/GameEngineTest/StereoTest/StereoTest.h
56 строк
1 KB
Sanakan8472
OpenXR plugin fixes (#1800)
30 янв 2026, 18:51
Не верифицирован
30 янв 2026, 18:51
52fc455
Код
Авторство
О чём код?
#pragma once #include <GameEngineTest/GameEngineTestPCH.h> #include <GameEngineTest/TestClass/TestClass.h> #if EZ_ENABLED(EZ_PLATFORM_WINDOWS_DESKTOP) || EZ_ENABLED(EZ_PLATFORM_LINUX) class ezStereoTestGameState : public ezGameEngineTestGameState { EZ_ADD_DYNAMIC_REFLECTION(ezStereoTestGameState, ezGameEngineTestGameState); public: void OverrideRenderPipeline(ezTypedResourceHandle<ezRenderPipelineResource> hPipeline); }; class ezStereoTestApplication : public ezGameEngineTestApplication { public: using SUPER = ezGameEngineTestApplication; ezStereoTestApplication(const char* szProjectDirName); ezPlatformProfile& GetPlatformProfile() { return m_PlatformProfile; } protected: virtual ezUniquePtr<ezGameStateBase> CreateGameState() override; }; class ezStereoTest : public ezGameEngineTest { using SUPER = ezGameEngineTest; public: virtual const char* GetTestName() const override; virtual ezGameEngineTestApplication* CreateApplication() override; protected: enum SubTests { HoloLensPipeline, DefaultPipeline }; virtual void SetupSubTests() override; virtual ezResult InitializeSubTest(ezInt32 iIdentifier) override; virtual ezTestAppRun RunSubTest(ezInt32 iIdentifier, ezUInt32 uiInvocationCount) override; ezInt32 m_iFrame = 0; ezStereoTestApplication* m_pOwnApplication = nullptr; ezUInt32 m_uiImgCompIdx = 0; ezHybridArray<ezUInt32, 8> m_ImgCompFrames; }; #endif