| 11 | } |
| 12 | |
| 13 | TriStepResult TriStepResolve::Execute( Be::Time realTime, Be::Time simTime, Tr2RenderContext& renderContext ) |
| 14 | { |
| 15 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 16 | |
| 17 | if( !m_source || !m_destination || !m_source->GetRenderTarget().IsValid() || !m_destination->GetRenderTarget().IsValid() ) |
| 18 | { |
| 19 | return RS_OK; |
| 20 | } |
| 21 | |
| 22 | if( FAILED( m_source->GetRenderTarget().Resolve( *m_destination, renderContext ) ) ) |
| 23 | { |
| 24 | return RS_FAILED; |
| 25 | } |
| 26 | |
| 27 | if( m_generateMipmap ) |
| 28 | { |
| 29 | m_destination->GetRenderTarget().GenerateMipMaps( renderContext ); |
| 30 | } |
| 31 | |
| 32 | return RS_OK; |
| 33 | } |
| 34 | |
| 35 | void TriStepResolve::py__init__( Tr2RenderTarget* destination, Tr2RenderTarget* source ) |
| 36 | { |
nothing calls this directly
no test coverage detected