Add RenderingUpscaleLocation for customizing upscaler location in render pipeline

This commit is contained in:
Wojciech Figat
2022-12-13 11:51:31 +01:00
parent ee019510ca
commit c17477abff
6 changed files with 91 additions and 23 deletions

View File

@@ -482,8 +482,7 @@ void PostProcessingPass::Render(RenderContext& renderContext, GPUTexture* input,
context->BindSR(7, colorGradingLutView);
// Composite final frame during single pass (done in full resolution)
auto viewport = renderContext.Task->GetViewport();
context->SetViewportAndScissors(viewport);
context->SetViewportAndScissors((float)output->Width(), (float)output->Height());
context->SetRenderTarget(*output);
context->SetState(_psComposite.Get(compositePermutationIndex));
context->DrawFullscreenTriangle();