| 13 | } |
| 14 | |
| 15 | TriStepResult 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 | |
| 43 | void TriStepRunJob::SetRenderJob( TriRenderJob* job ) |
| 44 | { |