Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-06-19 17:50:25 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-06-19 21:17:27 +0300
commit34a42788e702a4425afdff6fdbba7bdf549826be (patch)
tree0dd5b6fbde8cff36f9373964a061b6c624c837a7 /intern/cycles/render/graph.h
parentc87f7865b227d37b5c5be5a05a99e0eb50a3edc4 (diff)
Code refactor: small code simplification for Cycles constant folding.
Diffstat (limited to 'intern/cycles/render/graph.h')
-rw-r--r--intern/cycles/render/graph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h
index dccd8c27b2f..61100cda60b 100644
--- a/intern/cycles/render/graph.h
+++ b/intern/cycles/render/graph.h
@@ -142,6 +142,8 @@ public:
/* Check whether the node can be replaced with single constant. */
virtual bool constant_fold(ShaderGraph * /*graph*/, ShaderOutput * /*socket*/, ShaderInput * /*optimized*/) { return false; }
+ bool all_inputs_constant() const;
+
/* Simplify settings used by artists to the ones which are simpler to
* evaluate in the kernel but keep the final result unchanged.
*/