| 694 | } |
| 695 | |
| 696 | void Tr2GpuParticleSystem::SubmitGeometry( Tr2RenderContext& renderContext ) |
| 697 | { |
| 698 | if( m_drawParameters && m_drawParameters->IsValid() ) |
| 699 | { |
| 700 | renderContext.SetTopology( Tr2RenderContextEnum::TOP_TRIANGLES ); |
| 701 | renderContext.m_esm.ApplyVertexDeclaration( Tr2EffectStateManager::NULL_DECLARATION ); |
| 702 | renderContext.DrawInstancedIndirect( *m_drawParameters, 0 ); |
| 703 | } |
| 704 | } |
| 705 | |
| 706 | // -------------------------------------------------------------------------------------- |
| 707 | // Description: |
nothing calls this directly
no test coverage detected