From 6d5ac8f7ef4a3ddaf50720ab473b9dffece21674 Mon Sep 17 00:00:00 2001 From: Dario Date: Thu, 24 Oct 2024 16:01:00 -0300 Subject: Resolve load and store ops automatically for render passes for discardable textures. --- servers/rendering/renderer_rd/effects/fsr2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'servers/rendering/renderer_rd/effects/fsr2.cpp') diff --git a/servers/rendering/renderer_rd/effects/fsr2.cpp b/servers/rendering/renderer_rd/effects/fsr2.cpp index 551ea5dd97..294754f7cb 100644 --- a/servers/rendering/renderer_rd/effects/fsr2.cpp +++ b/servers/rendering/renderer_rd/effects/fsr2.cpp @@ -235,6 +235,7 @@ static FfxErrorCode create_resource_rd(FfxFsr2Interface *p_backend_interface, co texture_format.height = res_desc.height; texture_format.depth = res_desc.depth; texture_format.mipmaps = res_desc.mipCount; + texture_format.is_discardable = true; RID texture = rd->texture_create(texture_format, RD::TextureView(), initial_data); ERR_FAIL_COND_V(texture.is_null(), FFX_ERROR_BACKEND_API_ERROR); -- cgit v1.2.3