| 178 | } |
| 179 | |
| 180 | void 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 | |
| 200 | bool Tr2GpuParticleSystem::OnPrepareResources() |
| 201 | { |
no test coverage detected