Falcor
Falcor copied to clipboard
Passing Buffer Between Passes
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.
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.