summaryrefslogtreecommitdiffstats
path: root/servers/rendering/renderer_compositor.h
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2023-01-29 12:14:22 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2023-02-21 11:23:17 +0300
commit94831c7209334ea036dec8edbd235b34453083e2 (patch)
treee1756a8f6a6a4e83a1a40b04c778887428518ffa /servers/rendering/renderer_compositor.h
parent6cde3fac328e97e66b1c12d386deb25af395e215 (diff)
downloadredot-engine-94831c7209334ea036dec8edbd235b34453083e2.tar.gz
Forbid passing multiview sampler to the custom function in shaders
Diffstat (limited to 'servers/rendering/renderer_compositor.h')
-rw-r--r--servers/rendering/renderer_compositor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_compositor.h b/servers/rendering/renderer_compositor.h
index 9fb79a290b..ff7792741c 100644
--- a/servers/rendering/renderer_compositor.h
+++ b/servers/rendering/renderer_compositor.h
@@ -70,6 +70,7 @@ struct BlitToScreen {
class RendererCompositor {
private:
bool xr_enabled = false;
+ static RendererCompositor *singleton;
protected:
static RendererCompositor *(*_create_func)();
@@ -107,6 +108,7 @@ public:
static bool is_low_end() { return low_end; };
virtual bool is_xr_enabled() const;
+ static RendererCompositor *get_singleton() { return singleton; }
RendererCompositor();
virtual ~RendererCompositor() {}
};