summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_rd/effects/fsr2.cpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-27 10:47:29 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-27 10:47:29 -0600
commited01f5f2aa8e5a4c7103417f78259c5c9d9471ff (patch)
treec07cc6c07b939c38742c67a318e3ec7db6dc6dfa /servers/rendering/renderer_rd/effects/fsr2.cpp
parentce4674a0a5085746e4f4014fd6b3250248c0b52d (diff)
parent6d5ac8f7ef4a3ddaf50720ab473b9dffece21674 (diff)
downloadredot-engine-ed01f5f2aa8e5a4c7103417f78259c5c9d9471ff.tar.gz
Merge pull request #98670 from DarioSamo/rd-transient-targets
Automatically resolve initial and final action for draw lists.
Diffstat (limited to 'servers/rendering/renderer_rd/effects/fsr2.cpp')
-rw-r--r--servers/rendering/renderer_rd/effects/fsr2.cpp1
1 files changed, 1 insertions, 0 deletions
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);