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

Method execute

Source/Falcor/RenderPasses/ResolvePass.cpp:47–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void ResolvePass::execute(RenderContext* pRenderContext, const RenderData& renderData)
48{
49 auto pSrcTex = renderData.getTexture(kSrc);
50 auto pDstTex = renderData.getTexture(kDst);
51
52 if (pSrcTex && pDstTex)
53 {
54 if (pSrcTex->getSampleCount() == 1)
55 {
56 logWarning("ResolvePass::execute() - Cannot resolve from a non-multisampled texture.");
57 return;
58 }
59
60 pRenderContext->resolveResource(pSrcTex, pDstTex);
61 }
62 else
63 {
64 logWarning("ResolvePass::execute() - missing an input or output resource.");
65 }
66}
67} // namespace Falcor

Callers

nothing calls this directly

Calls 3

resolveResourceMethod · 0.80
logWarningFunction · 0.50
getTextureMethod · 0.45

Tested by

no test coverage detected