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

Method Execute

trinity/RenderJob/TriStepRunJob.cpp:15–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15TriStepResult TriStepRunJob::Execute( Be::Time realTime, Be::Time simTime, Tr2RenderContext& renderContext )
16{
17 CCP_STATS_ZONE( m_name.c_str() );
18
19 if( !m_job )
20 {
21 return RS_OK;
22 }
23
24 TriRenderJobStatus status = m_job->Run( realTime, simTime );
25
26 switch( status )
27 {
28 case RJ_DONE:
29 return RS_OK;
30
31 case RJ_IN_PROGRESS:
32 return RS_IN_PROGRESS;
33
34 case RJ_FAILED:
35 return RS_FAILED;
36
37 default:
38 CCP_LOGERR( "TriStepRunJob::Execute: Unexpected return value from running render job (%d)", status );
39 return RS_FAILED;
40 }
41}
42
43void TriStepRunJob::SetRenderJob( TriRenderJob* job )
44{

Callers

nothing calls this directly

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected