Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/graph.h
| Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | public: | ||||
| virtual bool has_integrator_dependency() | virtual bool has_integrator_dependency() | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| virtual bool has_volume_support() | virtual bool has_volume_support() | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| virtual bool has_raytrace() | |||||
| { | |||||
| return false; | |||||
| } | |||||
| vector<ShaderInput *> inputs; | vector<ShaderInput *> inputs; | ||||
| vector<ShaderOutput *> outputs; | vector<ShaderOutput *> outputs; | ||||
| int id; /* index in graph node array */ | int id; /* index in graph node array */ | ||||
| ShaderBump bump; /* for bump mapping utility */ | ShaderBump bump; /* for bump mapping utility */ | ||||
| ShaderNodeSpecialType special_type; /* special node type */ | ShaderNodeSpecialType special_type; /* special node type */ | ||||
| /* ** Selective nodes compilation ** */ | /* ** Selective nodes compilation ** */ | ||||
| /* TODO(sergey): More explicitly mention in the function names | /* TODO(sergey): More explicitly mention in the function names | ||||
| * that those functions are for selective compilation only? | * that those functions are for selective compilation only? | ||||
| */ | */ | ||||
| /* Nodes are split into several groups, group of level 0 contains | |||||
| * nodes which are most commonly used, further levels are extension | |||||
| * of previous one and includes less commonly used nodes. | |||||
| */ | |||||
| virtual int get_group() | |||||
| { | |||||
| return NODE_GROUP_LEVEL_0; | |||||
| } | |||||
| /* Node feature are used to disable huge nodes inside the group, | /* Node feature are used to disable huge nodes inside the group, | ||||
| * so it's possible to disable huge nodes inside of the required | * so it's possible to disable huge nodes inside of the required | ||||
| * nodes group. | * nodes group. | ||||
| */ | */ | ||||
| virtual int get_feature() | virtual int get_feature() | ||||
| { | { | ||||
| return bump == SHADER_BUMP_NONE ? 0 : NODE_FEATURE_BUMP; | return bump == SHADER_BUMP_NONE ? 0 : KERNEL_FEATURE_NODE_BUMP; | ||||
| } | } | ||||
| /* Get closure ID to which the node compiles into. */ | /* Get closure ID to which the node compiles into. */ | ||||
| virtual ClosureType get_closure_type() | virtual ClosureType get_closure_type() | ||||
| { | { | ||||
| return CLOSURE_NONE_ID; | return CLOSURE_NONE_ID; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines | |||||