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

Method clearBuffers

Source/RenderPasses/SVGFPass/SVGFPass.cpp:284–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void 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.

Callers

nothing calls this directly

Calls 4

clearFboMethod · 0.80
clearTextureMethod · 0.80
getMethod · 0.45
getTextureMethod · 0.45

Tested by

no test coverage detected