MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / execute

Method execute

Source/RenderPasses/OverlaySamplePass/OverlaySamplePass.cpp:70–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void OverlaySamplePass::execute(RenderContext* pRenderContext, const RenderData& renderData)
71{
72 // Just copy the input to the output.
73 auto src = renderData.getTexture(kInputChannels[0].name);
74 auto dst = renderData.getTexture(kOutputChannels[0].name);
75 mFrameDim.x = dst->getWidth();
76 mFrameDim.y = dst->getHeight();
77 if (src)
78 {
79 pRenderContext->blit(src->getSRV(), dst->getRTV());
80 }
81 mFrameCount++;
82}
83
84void OverlaySamplePass::renderOverlayUI(RenderContext* pRenderContext)
85{

Callers

nothing calls this directly

Calls 6

getWidthMethod · 0.80
getHeightMethod · 0.80
blitMethod · 0.80
getRTVMethod · 0.80
getTextureMethod · 0.45
getSRVMethod · 0.45

Tested by

no test coverage detected