MCPcopy Create free account
hub / github.com/carbonengine/trinity / RegisterWithVariableStore

Function RegisterWithVariableStore

trinity/Eve/EveSpaceScene.cpp:4246–4259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4244}
4245
4246void RegisterWithVariableStore( const EveSpaceScene::ShadowResources& shadowResources, Tr2GpuResourcePool& gpuResourcePool )
4247{
4248 const uint8_t whiteR8[1] = { 255 };
4249 Tr2SubresourceData initData = { whiteR8, 1, 1 };
4250
4251 GlobalStore().RegisterVariable(
4252 "EveSpaceSceneShadowMap",
4253 shadowResources.shadowMap.IsValid() ? shadowResources.shadowMap : gpuResourcePool.GetPersistentTexture( "EmptyShadow", 1, 1, ImageIO::PIXEL_FORMAT_R8_UNORM, Tr2GpuUsage::SHADER_RESOURCE, &initData ) );
4254 GlobalStore().RegisterVariable( "EveSpaceSceneCascadedShadowMap", shadowResources.cascadedShadowDepth );
4255 GlobalStore().RegisterVariable(
4256 "EveSpaceSceneDynamicShadowMap",
4257 shadowResources.pointLightShadowMap.IsValid() ? shadowResources.pointLightShadowMap : gpuResourcePool.GetPersistentTexture( "EmptyShadowUint", 1, 1, ImageIO::PIXEL_FORMAT_R8_UINT, Tr2GpuUsage::SHADER_RESOURCE, &initData ) );
4258 GlobalStore().RegisterVariable( "ShadowMapAtlas", shadowResources.pointLightShadowDepth );
4259}

Callers 2

ExecuteMethod · 0.85
RenderReflectionPassMethod · 0.85

Calls 3

RegisterVariableMethod · 0.80
GetPersistentTextureMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected