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

Method ReleaseResources

trinity/Shader/Tr2Effect.cpp:282–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void Tr2Effect::ReleaseResources( TriStorage s )
283{
284 if( ( s & TRISTORAGE_ALL ) == TRISTORAGE_ALL )
285 {
286 for( auto& technique : m_parametersForPasses )
287 {
288 for( auto& pass : technique.passes )
289 {
290 for( auto& stage : pass->m_stageInput )
291 {
292 stage.m_constantBuffer = Tr2ConstantBufferAL();
293 }
294 }
295 for( auto& library : technique.libraries )
296 {
297 library->m_globalInput.m_constantBuffer = Tr2ConstantBufferAL();
298 library->m_localInput.m_constantBuffer = Tr2ConstantBufferAL();
299 }
300 }
301 }
302}
303
304bool Tr2Effect::OnPrepareResources()
305{

Callers

nothing calls this directly

Calls 1

Tr2ConstantBufferALClass · 0.50

Tested by

no test coverage detected