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

Method RenderGenericEffect

trinity/PostProcess/Tr2PostProcessRenderer.cpp:1585–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1583}
1584
1585void Tr2PostProcessRenderer::RenderGenericEffect( const Tr2TextureAL& dest, const Tr2TextureAL& src, Tr2RenderContext& renderContext, Tr2PPGenericEffectPtr genericEffect )
1586{
1587 Tr2EffectPtr effect = genericEffect->GetEffect();
1588 if( effect != nullptr )
1589 {
1590 GPU_REGION( renderContext, "GenericEffect" );
1591 renderContext.m_esm.ApplyStandardStates( Tr2EffectStateManager::RM_FULLSCREEN );
1592
1593 TEMP_PARAM( effect, "Blit", src );
1594 DrawInto( dest, Tr2LoadAction::DONT_CARE, effect, renderContext );
1595 }
1596}
1597
1598void Tr2PostProcessRenderer::RenderDepthOfField( const Tr2TextureAL& dest, Tr2GpuResourcePool& gpuResourcePool, Tr2RenderContext& renderContext, Tr2PPDepthOfFieldEffect* depthOfField, bool temporal, float upscalingAmount )
1599{

Callers

nothing calls this directly

Calls 3

DrawIntoFunction · 0.85
ApplyStandardStatesMethod · 0.80
GetEffectMethod · 0.45

Tested by

no test coverage detected