diff options
author | Thomas Dinges <blender@dingto.org> | 2015-11-18 19:12:26 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2015-11-18 19:12:26 +0300 |
commit | 38bbc920a60c39e18f866175563a63e834a10f5e (patch) | |
tree | 2c8f17e613d37d6cdd05d021e52d05c358e667af /intern/cycles/render/graph.h | |
parent | c2c11debe5abf52afa46b99c6dc6a5acd12d97ae (diff) |
Cycles: Add utility functions to get a ShaderInput / ShaderOutput by name.
Diffstat (limited to 'intern/cycles/render/graph.h')
-rw-r--r-- | intern/cycles/render/graph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h index 9117fd03a95..8169e606f1a 100644 --- a/intern/cycles/render/graph.h +++ b/intern/cycles/render/graph.h @@ -189,6 +189,9 @@ public: ShaderInput *add_input(const char *name, ShaderSocketType type, ShaderInput::DefaultValue value, int usage=ShaderInput::USE_ALL); ShaderOutput *add_output(const char *name, ShaderSocketType type); + ShaderInput *get_input(const char *name); + ShaderOutput *get_output(const char *name); + virtual ShaderNode *clone() const = 0; virtual void attributes(Shader *shader, AttributeRequestSet *attributes); virtual void compile(SVMCompiler& compiler) = 0; |