Remove old RT1_FloatRGB and RT2_FloatRGB in favor pooled render targets

This commit is contained in:
Wojciech Figat
2022-12-12 14:58:16 +01:00
parent 48b88af88a
commit ee019510ca
4 changed files with 17 additions and 29 deletions

View File

@@ -1126,7 +1126,8 @@ void GlobalSurfaceAtlasPass::RenderDebug(RenderContext& renderContext, GPUContex
Float2 outputSizeThird = outputSize * 0.333f;
Float2 outputSizeTwoThird = outputSize * 0.666f;
GPUTexture* tempBuffer = renderContext.Buffers->RT2_FloatRGB;
auto tempBuffer = RenderTargetPool::Get(output->GetDescription());
RENDER_TARGET_POOL_SET_NAME(tempBuffer, "GlobalSurfaceAtlas.TempBuffer");
context->Clear(tempBuffer->View(), Color::Black);
context->SetRenderTarget(tempBuffer->View());