summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_rd/effects/vrs.cpp
diff options
context:
space:
mode:
authorDario <dariosamo@gmail.com>2024-10-24 16:01:00 -0300
committerDario <dariosamo@gmail.com>2024-11-25 11:27:48 -0300
commit6d5ac8f7ef4a3ddaf50720ab473b9dffece21674 (patch)
tree944b63cb05590c207f242025bae3aabc02e0b656 /servers/rendering/renderer_rd/effects/vrs.cpp
parent0c45ace151f25de2ca54fe7a46b6f077be32ba6f (diff)
downloadredot-engine-6d5ac8f7ef4a3ddaf50720ab473b9dffece21674.tar.gz
Resolve load and store ops automatically for render passes for discardable textures.
Diffstat (limited to 'servers/rendering/renderer_rd/effects/vrs.cpp')
-rw-r--r--servers/rendering/renderer_rd/effects/vrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/effects/vrs.cpp b/servers/rendering/renderer_rd/effects/vrs.cpp
index 94453bf95f..9cc22f6f5e 100644
--- a/servers/rendering/renderer_rd/effects/vrs.cpp
+++ b/servers/rendering/renderer_rd/effects/vrs.cpp
@@ -94,7 +94,7 @@ void VRS::copy_vrs(RID p_source_rd_texture, RID p_dest_framebuffer, bool p_multi
RID shader = vrs_shader.shader.version_get_shader(vrs_shader.shader_version, mode);
ERR_FAIL_COND(shader.is_null());
- RD::DrawListID draw_list = RD::get_singleton()->draw_list_begin(p_dest_framebuffer, RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_STORE, RD::INITIAL_ACTION_LOAD, RD::FINAL_ACTION_DISCARD, Vector<Color>());
+ RD::DrawListID draw_list = RD::get_singleton()->draw_list_begin(p_dest_framebuffer);
RD::get_singleton()->draw_list_bind_render_pipeline(draw_list, vrs_shader.pipelines[mode].get_render_pipeline(RD::INVALID_ID, RD::get_singleton()->framebuffer_get_format(p_dest_framebuffer)));
RD::get_singleton()->draw_list_bind_uniform_set(draw_list, uniform_set_cache->get_cache(shader, 0, u_source_rd_texture), 0);
RD::get_singleton()->draw_list_set_push_constant(draw_list, &push_constant, sizeof(VRSPushConstant));