summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shader_rd.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-06 16:28:45 +0100
committerGitHub <noreply@github.com>2021-01-06 16:28:45 +0100
commita7baf013524ccd271bd123d8aef93a73b450a888 (patch)
treef6b0f142b5b9e44805b814acb69f0be656061a11 /servers/rendering/renderer_rd/shader_rd.h
parenta3b76e26f34b668993382e6c32b7d3afaca0259f (diff)
parentcdb216f4e4096dd45973cb9fd3b9b00d50789e35 (diff)
Merge pull request #44950 from reduz/shader-debugger
Added ability to visualize native shaders
Diffstat (limited to 'servers/rendering/renderer_rd/shader_rd.h')
-rw-r--r--servers/rendering/renderer_rd/shader_rd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/shader_rd.h b/servers/rendering/renderer_rd/shader_rd.h
index a80d08050a..a3474c6f93 100644
--- a/servers/rendering/renderer_rd/shader_rd.h
+++ b/servers/rendering/renderer_rd/shader_rd.h
@@ -36,6 +36,7 @@
#include "core/templates/map.h"
#include "core/templates/rid_owner.h"
#include "core/variant/variant.h"
+#include "servers/rendering_server.h"
#include <stdio.h>
/**
@@ -133,6 +134,8 @@ public:
void set_variant_enabled(int p_variant, bool p_enabled);
bool is_variant_enabled(int p_variant) const;
+ RS::ShaderNativeSourceCode version_get_native_source_code(RID p_version);
+
void initialize(const Vector<String> &p_variant_defines, const String &p_general_defines = "");
virtual ~ShaderRD();
};