summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shader_rd.h
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-01-05 20:01:50 -0300
committerreduz <reduzio@gmail.com>2021-01-06 09:40:09 -0300
commitcdb216f4e4096dd45973cb9fd3b9b00d50789e35 (patch)
tree9e0f31225c3f63d0c69090e75f020050ceb36456 /servers/rendering/renderer_rd/shader_rd.h
parentcdfcf68af96fa3b9c0e78445e042bc60dff365f7 (diff)
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();
};