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

Method Render

trinity/Shader/Tr2Effect.cpp:1491–1512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489}
1490
1491void Tr2Effect::Render( IRenderCallback* cb, Tr2RenderContext& renderContext )
1492{
1493 CCP_STATS_ZONE( __FUNCTION__ );
1494
1495 auto effectResource = GetShaderStateInterface();
1496
1497 if( !effectResource )
1498 {
1499 return;
1500 }
1501
1502 CCP_ASSERT( cb );
1503
1504 unsigned int passCount = effectResource->GetPassCount( 0 );
1505
1506 for( uint32_t passIx = 0; passIx < passCount; ++passIx )
1507 {
1508 effectResource->ApplyAllStateForPass( 0, passIx, renderContext );
1509 ApplyMaterialDataForPass( 0, passIx, renderContext );
1510 cb->SubmitGeometry( renderContext );
1511 }
1512}
1513
1514// --------------------------------------------------------------------------------------
1515// Description:

Callers 3

ExecuteMethod · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45

Calls 3

GetPassCountMethod · 0.80
ApplyAllStateForPassMethod · 0.80
SubmitGeometryMethod · 0.45

Tested by

no test coverage detected