Falcor icon indicating copy to clipboard operation
Falcor copied to clipboard

Passing Buffer Between Passes

Open xin-xinhanggao opened this issue 4 years ago • 1 comments

Hi, Falcor is actually a great job! I love it!

But I wonder how to pass buffer(TypedBufferBase::SharedPtr) between passes, it seems that dictionary could not help.

xin-xinhanggao avatar May 16 '20 09:05 xin-xinhanggao

in onFrameRender(RenderContext* pRenderContext, const Fbo::SharedPtr& pTargetFbo) funtion,after the execution of mpMainPass->execute(pRenderContext, pTargetFbo);,you can get the Buffer by call pTargetFbo->getColorTexture(0); pass this texture to other pass execution ,there is a sample of multi pass using.but removed since Falcor 4.0.Moreover,I miss the 3.? version architeture,which functionality was not exposed as DLL.

625673575 avatar Aug 06 '20 08:08 625673575