| 280 | } |
| 281 | |
| 282 | void 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 | |
| 304 | bool Tr2Effect::OnPrepareResources() |
| 305 | { |
nothing calls this directly
no test coverage detected