Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/svm.cpp
| Show First 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | uint SVMCompiler::attribute(ustring name) | ||||
| return shader_manager->get_attribute_id(name); | return shader_manager->get_attribute_id(name); | ||||
| } | } | ||||
| uint SVMCompiler::attribute(AttributeStandard std) | uint SVMCompiler::attribute(AttributeStandard std) | ||||
| { | { | ||||
| return shader_manager->get_attribute_id(std); | return shader_manager->get_attribute_id(std); | ||||
| } | } | ||||
| bool SVMCompiler::node_skip_input(ShaderNode * /*node*/, ShaderInput *input) | bool SVMCompiler::node_skip_input(const ShaderNode * /*node*/, const ShaderInput *input) const | ||||
| { | { | ||||
| /* nasty exception .. */ | /* nasty exception .. */ | ||||
| if(current_type == SHADER_TYPE_DISPLACEMENT && input->link && input->link->parent->name == ustring("bump")) | if(current_type == SHADER_TYPE_DISPLACEMENT && input->link && input->link->parent->name == ustring("bump")) | ||||
| return true; | return true; | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 378 Lines • Show Last 20 Lines | |||||