| 282 | } |
| 283 | |
| 284 | void SVGFPass::clearBuffers(RenderContext* pRenderContext, const RenderData& renderData) |
| 285 | { |
| 286 | pRenderContext->clearFbo(mpPingPongFbo[0].get(), float4(0), 1.0f, 0, FboAttachmentType::All); |
| 287 | pRenderContext->clearFbo(mpPingPongFbo[1].get(), float4(0), 1.0f, 0, FboAttachmentType::All); |
| 288 | pRenderContext->clearFbo(mpLinearZAndNormalFbo.get(), float4(0), 1.0f, 0, FboAttachmentType::All); |
| 289 | pRenderContext->clearFbo(mpFilteredPastFbo.get(), float4(0), 1.0f, 0, FboAttachmentType::All); |
| 290 | pRenderContext->clearFbo(mpCurReprojFbo.get(), float4(0), 1.0f, 0, FboAttachmentType::All); |
| 291 | pRenderContext->clearFbo(mpPrevReprojFbo.get(), float4(0), 1.0f, 0, FboAttachmentType::All); |
| 292 | pRenderContext->clearFbo(mpFilteredIlluminationFbo.get(), float4(0), 1.0f, 0, FboAttachmentType::All); |
| 293 | |
| 294 | pRenderContext->clearTexture(renderData.getTexture(kInternalBufferPreviousLinearZAndNormal).get()); |
| 295 | pRenderContext->clearTexture(renderData.getTexture(kInternalBufferPreviousLighting).get()); |
| 296 | pRenderContext->clearTexture(renderData.getTexture(kInternalBufferPreviousMoments).get()); |
| 297 | } |
| 298 | |
| 299 | // Extracts linear z and its derivative from the linear Z texture and packs |
| 300 | // the normal from the world normal texture and packes them into the FBO. |
nothing calls this directly
no test coverage detected