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

Method SubmitGeometry

trinity/Particle/Tr2GpuParticleSystem.cpp:696–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694}
695
696void 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:

Callers

nothing calls this directly

Calls 4

IsValidMethod · 0.45
SetTopologyMethod · 0.45
DrawInstancedIndirectMethod · 0.45

Tested by

no test coverage detected