-------------------------------------------------------------------------------------- Description: Updates number of live/visible particles for debugging. --------------------------------------------------------------------------------------
| 379 | // Updates number of live/visible particles for debugging. |
| 380 | // -------------------------------------------------------------------------------------- |
| 381 | void Tr2GpuParticleSystem::UpdateLiveCount( Tr2RenderContext& renderContext ) |
| 382 | { |
| 383 | if( m_updateVisibleCount ) |
| 384 | { |
| 385 | const uint32_t* count = nullptr; |
| 386 | CR_RETURN( m_drawParameters->GetGpuBuffer( 0 )->MapForReading( count, renderContext ) ); |
| 387 | m_visibleCount = *count / 6; |
| 388 | m_drawParameters->GetGpuBuffer( 0 )->UnmapForReading( renderContext ); |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | // -------------------------------------------------------------------------------------- |
| 393 | // Description: |
nothing calls this directly
no test coverage detected