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

Method ResetVariableStore

trinity/Tr2LightManager.cpp:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void Tr2LightManager::ResetVariableStore()
180{
181 Tr2GpuStructuredBufferPtr empty;
182 empty.CreateInstance();
183
184 GlobalStore().RegisterVariable( "LightBuffer", empty );
185 GlobalStore().RegisterVariable( "LightIndexBuffer", empty );
186 GlobalStore().RegisterVariable( "LightProfileArray", &GetLightProfileArray() );
187
188 Tr2DepthStencilPtr emptyTexture;
189 GlobalStore().RegisterVariable( "ShadowMapAtlas", emptyTexture );
190}
191
192Tr2LightManager* Tr2LightManager::GetOrCreateInstance( const char* effectPath )
193{

Callers

nothing calls this directly

Calls 2

CreateInstanceMethod · 0.80
RegisterVariableMethod · 0.80

Tested by

no test coverage detected