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

Method ReleaseResources

trinity/Particle/Tr2GpuParticleSystem.cpp:180–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void Tr2GpuParticleSystem::ReleaseResources( TriStorage s )
181{
182 if( s & m_emitCB.GetMemoryClass() )
183 {
184 m_emitCB = Tr2ConstantBufferAL();
185 }
186 if( s & m_updateCB.GetMemoryClass() )
187 {
188 m_updateCB = Tr2ConstantBufferAL();
189 }
190 if( s & m_sortCB.GetMemoryClass() )
191 {
192 m_sortCB = Tr2ConstantBufferAL();
193 }
194 if( ( s & TRISTORAGE_MANAGEDMEMORY ) != 0 )
195 {
196 Clear();
197 }
198}
199
200bool Tr2GpuParticleSystem::OnPrepareResources()
201{

Callers 1

SetMaxParticlesMethod · 0.45

Calls 2

Tr2ConstantBufferALClass · 0.50
GetMemoryClassMethod · 0.45

Tested by

no test coverage detected