diff options
author | Bastiaan Olij <mux213@gmail.com> | 2024-03-26 12:57:26 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2024-05-03 17:20:30 +1000 |
commit | 9042ddf19f33445abbb69a8330fff7e98fcda2dc (patch) | |
tree | 6e3fc77e57d3b032d525e9d02dd753cc99ac65af /servers/rendering/renderer_viewport.cpp | |
parent | 34b5e8f55cb7d09977074b1486bbdf00d5c16a01 (diff) | |
download | redot-engine-9042ddf19f33445abbb69a8330fff7e98fcda2dc.tar.gz |
Improvements to VRS/Foveated rendering
Diffstat (limited to 'servers/rendering/renderer_viewport.cpp')
-rw-r--r-- | servers/rendering/renderer_viewport.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/servers/rendering/renderer_viewport.cpp b/servers/rendering/renderer_viewport.cpp index 31d5a9074c..075df10e05 100644 --- a/servers/rendering/renderer_viewport.cpp +++ b/servers/rendering/renderer_viewport.cpp @@ -1450,6 +1450,13 @@ void RendererViewport::viewport_set_vrs_mode(RID p_viewport, RS::ViewportVRSMode _configure_3d_render_buffers(viewport); } +void RendererViewport::viewport_set_vrs_update_mode(RID p_viewport, RS::ViewportVRSUpdateMode p_mode) { + Viewport *viewport = viewport_owner.get_or_null(p_viewport); + ERR_FAIL_NULL(viewport); + + RSG::texture_storage->render_target_set_vrs_update_mode(viewport->render_target, p_mode); +} + void RendererViewport::viewport_set_vrs_texture(RID p_viewport, RID p_texture) { Viewport *viewport = viewport_owner.get_or_null(p_viewport); ERR_FAIL_NULL(viewport); |