| 177 | } |
| 178 | |
| 179 | void 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 | |
| 192 | Tr2LightManager* Tr2LightManager::GetOrCreateInstance( const char* effectPath ) |
| 193 | { |
nothing calls this directly
no test coverage detected