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

Method ClearOnFailure

trinity/RenderJob/Tr2StepExecuteRenderNode.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void Tr2StepExecuteRenderNode::ClearOnFailure( Tr2RenderContext& renderContext )
55{
56 renderContext.m_esm.SetRenderTarget( 0, *m_destinationTarget );
57 renderContext.m_esm.SetDepthStencilBuffer( {} );
58 renderContext.m_esm.SetFullScreenViewport();
59
60 renderContext.Clear( Tr2RenderContextEnum::CLEARFLAGS_TARGET, Color( 0.f, 0.f, 0.f, 1.f ), 0 );
61}

Callers

nothing calls this directly

Calls 4

SetDepthStencilBufferMethod · 0.80
SetFullScreenViewportMethod · 0.80
SetRenderTargetMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected