diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-09 17:11:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-09 17:13:32 +0300 |
commit | 5068f7dc015eb66a292d0027b3268f535201b3af (patch) | |
tree | 566626a56175182e68ebea7c4ea536e440ea1c16 /intern/cycles/render/graph.h | |
parent | b3299bace003d9d061b188760a263ca7b42c36d7 (diff) |
Cycles: Add utility function to graph to query number of closures used in it
Currently unused but will be needed soon for the split kernel work.
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 7817a4cdc6d..6744804ef19 100644 --- a/intern/cycles/render/graph.h +++ b/intern/cycles/render/graph.h @@ -82,6 +82,7 @@ enum ShaderNodeSpecialType { SHADER_SPECIAL_TYPE_SCRIPT, SHADER_SPECIAL_TYPE_BACKGROUND, SHADER_SPECIAL_TYPE_IMAGE_SLOT, + SHADER_SPECIAL_TYPE_CLOSURE, }; /* Enum @@ -253,6 +254,8 @@ public: void remove_unneeded_nodes(); void finalize(bool do_bump = false, bool do_osl = false); + int get_num_closures(); + void dump_graph(const char *filename); protected: |