Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/constant_fold.h
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public: | ||||
| bool try_bypass_or_make_constant(ShaderInput *input, bool clamp = false) const; | bool try_bypass_or_make_constant(ShaderInput *input, bool clamp = false) const; | ||||
| /* Test if shader inputs of the current nodes have fixed values. */ | /* Test if shader inputs of the current nodes have fixed values. */ | ||||
| bool is_zero(ShaderInput *input) const; | bool is_zero(ShaderInput *input) const; | ||||
| bool is_one(ShaderInput *input) const; | bool is_one(ShaderInput *input) const; | ||||
| /* Specific nodes. */ | /* Specific nodes. */ | ||||
| void fold_mix(NodeMix type, bool clamp) const; | void fold_mix(NodeMix type, bool clamp) const; | ||||
| void fold_math(NodeMath type, bool clamp) const; | void fold_math(NodeMathType type) const; | ||||
| void fold_vector_math(NodeVectorMath type) const; | void fold_vector_math(NodeVectorMath type) const; | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __CONSTANT_FOLD_H__ */ | #endif /* __CONSTANT_FOLD_H__ */ | ||||