| 311 | } |
| 312 | |
| 313 | void 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 | |
| 344 | void SVGFPass::computeFilteredMoments(RenderContext* pRenderContext) |
| 345 | { |
nothing calls this directly
no test coverage detected