Showing the changes to libraries/render-utils/src/DebugDeferredBuffer.cpp (1 of 23 files). Show all
Unified · Split
| @@ -351,8 +351,9 @@ void DebugDeferredBuffer::run(const SceneContextPointer& sceneContext, const Ren · 350 unmodified lines | ||
| 351 | 351 | assert(renderContext->args->hasViewFrustum()); |
| 352 | 352 | RenderArgs* args = renderContext->args; |
| 353 | 353 | |
| 354 | − auto& diffusedCurvatureFramebuffer = inputs.get0(); | |
| 355 | − auto& scatteringFramebuffer = inputs.get1(); | |
| 354 | + auto& deferredFramebuffer = inputs.get0(); | |
| 355 | + auto& diffusedCurvatureFramebuffer = inputs.get1(); | |
| 356 | + auto& scatteringFramebuffer = inputs.get2(); | |
| 356 | 357 | |
| 357 | 358 | gpu::doInBatch(args->_context, [&](gpu::Batch& batch) { |
| 358 | 359 | batch.enableStereo(false); |
| @@ -376,11 +377,11 @@ void DebugDeferredBuffer::run(const SceneContextPointer& sceneContext, const Ren · 17 unmodified lines | ||
| 376 | 377 | |
| 377 | 378 | batch.setPipeline(getPipeline(_mode, first)); |
| 378 | 379 | |
| 379 | − batch.setResourceTexture(Albedo, framebufferCache->getDeferredColorTexture()); | |
| 380 | − batch.setResourceTexture(Normal, framebufferCache->getDeferredNormalTexture()); | |
| 381 | − batch.setResourceTexture(Specular, framebufferCache->getDeferredSpecularTexture()); | |
| 382 | − batch.setResourceTexture(Depth, framebufferCache->getPrimaryDepthTexture()); | |
| 383 | − batch.setResourceTexture(Lighting, framebufferCache->getLightingTexture()); | |
| 380 | + batch.setResourceTexture(Albedo, deferredFramebuffer->getDeferredColorTexture()); | |
| 381 | + batch.setResourceTexture(Normal, deferredFramebuffer->getDeferredNormalTexture()); | |
| 382 | + batch.setResourceTexture(Specular, deferredFramebuffer->getDeferredSpecularTexture()); | |
| 383 | + batch.setResourceTexture(Depth, deferredFramebuffer->getPrimaryDepthTexture()); | |
| 384 | + batch.setResourceTexture(Lighting, deferredFramebuffer->getLightingTexture()); | |
| 384 | 385 | batch.setResourceTexture(Shadow, lightStage.lights[0]->shadow.framebuffer->getDepthStencilBuffer()); |
| 385 | 386 | batch.setResourceTexture(Pyramid, framebufferCache->getDepthPyramidTexture()); |
| 386 | 387 | batch.setResourceTexture(Curvature, framebufferCache->getCurvatureTexture()); |