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

Method computeReprojection

Source/RenderPasses/SVGFPass/SVGFPass.cpp:313–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void SVGFPass::computeReprojection(
314 RenderContext* pRenderContext,
315 ref<Texture> pAlbedoTexture,
316 ref<Texture> pColorTexture,
317 ref<Texture> pEmissionTexture,
318 ref<Texture> pMotionVectorTexture,
319 ref<Texture> pPositionNormalFwidthTexture,
320 ref<Texture> pPrevLinearZTexture
321)
322{
323 auto perImageCB = mpReprojection->getRootVar()["PerImageCB"];
324
325 // Setup textures for our reprojection shader pass
326 perImageCB["gMotion"] = pMotionVectorTexture;
327 perImageCB["gColor"] = pColorTexture;
328 perImageCB["gEmission"] = pEmissionTexture;
329 perImageCB["gAlbedo"] = pAlbedoTexture;
330 perImageCB["gPositionNormalFwidth"] = pPositionNormalFwidthTexture;
331 perImageCB["gPrevIllum"] = mpFilteredPastFbo->getColorTexture(0);
332 perImageCB["gPrevMoments"] = mpPrevReprojFbo->getColorTexture(1);
333 perImageCB["gLinearZAndNormal"] = mpLinearZAndNormalFbo->getColorTexture(0);
334 perImageCB["gPrevLinearZAndNormal"] = pPrevLinearZTexture;
335 perImageCB["gPrevHistoryLength"] = mpPrevReprojFbo->getColorTexture(2);
336
337 // Setup variables for our reprojection pass
338 perImageCB["gAlpha"] = mAlpha;
339 perImageCB["gMomentsAlpha"] = mMomentsAlpha;
340
341 mpReprojection->execute(pRenderContext, mpCurReprojFbo);
342}
343
344void SVGFPass::computeFilteredMoments(RenderContext* pRenderContext)
345{

Callers

nothing calls this directly

Calls 3

getRootVarMethod · 0.80
getColorTextureMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected