summaryrefslogtreecommitdiff
path: root/servers/rendering_server.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_server.h
parenta3b76e26f34b668993382e6c32b7d3afaca0259f (diff)
parentcdb216f4e4096dd45973cb9fd3b9b00d50789e35 (diff)
Merge pull request #44950 from reduz/shader-debugger
Added ability to visualize native shaders
Diffstat (limited to 'servers/rendering_server.h')
-rw-r--r--servers/rendering_server.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/servers/rendering_server.h b/servers/rendering_server.h
index 5481079694..74bdb344bd 100644
--- a/servers/rendering_server.h
+++ b/servers/rendering_server.h
@@ -179,6 +179,19 @@ public:
virtual void shader_set_default_texture_param(RID p_shader, const StringName &p_name, RID p_texture) = 0;
virtual RID shader_get_default_texture_param(RID p_shader, const StringName &p_name) const = 0;
+ struct ShaderNativeSourceCode {
+ struct Version {
+ struct Stage {
+ String name;
+ String code;
+ };
+ Vector<Stage> stages;
+ };
+ Vector<Version> versions;
+ };
+
+ virtual ShaderNativeSourceCode shader_get_native_source_code(RID p_shader) const = 0;
+
/* COMMON MATERIAL API */
enum {