/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/RendererCore/Lights/Implementation/ShadowPool.h
38 строк
1 KB
C-Core
Only copy white listed exclude tags to shadow views (#515)
11 дек 2021, 23:38
Не верифицирован
11 дек 2021, 23:38
4d3c9ef
Код
Авторство
О чём код?
#pragma once #include <RendererCore/Declarations.h> class ezDirectionalLightComponent; class ezPointLightComponent; class ezSpotLightComponent; class ezGALTextureHandle; class ezGALBufferHandle; class ezView; struct ezRenderWorldExtractionEvent; struct ezRenderWorldRenderEvent; class EZ_RENDERERCORE_DLL ezShadowPool { public: static ezUInt32 AddDirectionalLight(const ezDirectionalLightComponent* pDirLight, const ezView* pReferenceView); static ezUInt32 AddPointLight(const ezPointLightComponent* pPointLight, float fScreenSpaceSize, const ezView* pReferenceView); static ezUInt32 AddSpotLight(const ezSpotLightComponent* pSpotLight, float fScreenSpaceSize, const ezView* pReferenceView); static ezGALTextureHandle GetShadowAtlasTexture(); static ezGALBufferHandle GetShadowDataBuffer(); /// \brief All exclude tags on this white list are copied from the reference views to the shadow views. static void AddExcludeTagToWhiteList(const ezTag& tag); private: EZ_MAKE_SUBSYSTEM_STARTUP_FRIEND(RendererCore, ShadowPool); static void OnEngineStartup(); static void OnEngineShutdown(); static void OnExtractionEvent(const ezRenderWorldExtractionEvent& e); static void OnRenderEvent(const ezRenderWorldRenderEvent& e); struct Data; static Data* s_pData; };