summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/environment/fog.h
diff options
context:
space:
mode:
Diffstat (limited to 'servers/rendering/renderer_rd/environment/fog.h')
-rw-r--r--servers/rendering/renderer_rd/environment/fog.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/servers/rendering/renderer_rd/environment/fog.h b/servers/rendering/renderer_rd/environment/fog.h
index 926da4026c..277389c596 100644
--- a/servers/rendering/renderer_rd/environment/fog.h
+++ b/servers/rendering/renderer_rd/environment/fog.h
@@ -303,21 +303,10 @@ public:
RID fog_uniform_set;
struct {
- bool valid = false;
RID copy_uniform_set;
RID process_uniform_set_density;
RID process_uniform_set;
RID process_uniform_set2;
-
-#ifdef DEV_ENABLED
- void assert_actual_validity() {
- // It's all-or-nothing, or something else has changed that requires dev attention.
- DEV_ASSERT(valid == RD::get_singleton()->uniform_set_is_valid(copy_uniform_set));
- DEV_ASSERT(valid == RD::get_singleton()->uniform_set_is_valid(process_uniform_set_density));
- DEV_ASSERT(valid == RD::get_singleton()->uniform_set_is_valid(process_uniform_set));
- DEV_ASSERT(valid == RD::get_singleton()->uniform_set_is_valid(process_uniform_set2));
- }
-#endif
} gi_dependent_sets;
RID sdfgi_uniform_set;
@@ -328,6 +317,8 @@ public:
virtual void configure(RenderSceneBuffersRD *p_render_buffers) override{};
virtual void free_data() override{};
+ bool sync_gi_dependent_sets_validity(bool p_ensure_freed = false);
+
void init(const Vector3i &fog_size, RID p_sky_shader);
~VolumetricFog();
};