diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-27 12:40:44 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-07-27 18:19:54 +0300 |
commit | 709b36e43b94678b18fec20a92d7d34f9b5aa78b (patch) | |
tree | 34182d388c24733777d49b9c8a6b6f3423209519 /intern/cycles/graph/node.h | |
parent | 9a080d2ea6065b3686089c156cfa72d29744c953 (diff) |
Cycles: Add utility function to query graph node size in bytes
Diffstat (limited to 'intern/cycles/graph/node.h')
-rw-r--r-- | intern/cycles/graph/node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/graph/node.h b/intern/cycles/graph/node.h index a738bfe197e..11695a8631d 100644 --- a/intern/cycles/graph/node.h +++ b/intern/cycles/graph/node.h @@ -92,6 +92,9 @@ struct Node /* compute hash of node and its socket values */ void hash(MD5Hash& md5); + /* Get total size of this node. */ + size_t get_total_size_in_bytes() const; + ustring name; const NodeType *type; }; |