summaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer_rd/rasterizer_canvas_rd.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-07-29 15:29:43 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 11:53:29 +0100
commit6ecedd1e6ca7d8b10b13a3dab19074fd51b17bcf (patch)
tree8b66186e969d81834ed5a24ec1b91fd3bc8d73ee /servers/visual/rasterizer_rd/rasterizer_canvas_rd.h
parentc613ead5fa2361296cf8d9a80d4648492ff4e16f (diff)
Add a system to properly update materials if the uniform set is gone (likely deleted texture)
Diffstat (limited to 'servers/visual/rasterizer_rd/rasterizer_canvas_rd.h')
-rw-r--r--servers/visual/rasterizer_rd/rasterizer_canvas_rd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/visual/rasterizer_rd/rasterizer_canvas_rd.h b/servers/visual/rasterizer_rd/rasterizer_canvas_rd.h
index edb8007f5c..e8da79755b 100644
--- a/servers/visual/rasterizer_rd/rasterizer_canvas_rd.h
+++ b/servers/visual/rasterizer_rd/rasterizer_canvas_rd.h
@@ -4,10 +4,10 @@
#include "servers/visual/rasterizer.h"
#include "servers/visual/rasterizer_rd/rasterizer_storage_rd.h"
#include "servers/visual/rasterizer_rd/render_pipeline_vertex_format_cache_rd.h"
-#include "servers/visual/rendering_device.h"
#include "servers/visual/rasterizer_rd/shader_compiler_rd.h"
#include "servers/visual/rasterizer_rd/shaders/canvas.glsl.gen.h"
#include "servers/visual/rasterizer_rd/shaders/canvas_occlusion.glsl.gen.h"
+#include "servers/visual/rendering_device.h"
class RasterizerCanvasRD : public RasterizerCanvas {
@@ -167,6 +167,7 @@ class RasterizerCanvasRD : public RasterizerCanvas {
}
struct MaterialData : public RasterizerStorageRD::MaterialData {
+ uint64_t last_frame;
ShaderData *shader_data;
RID uniform_buffer;
RID uniform_set;