Blender V2.61 - r43446
|
#include <graph.h>
Public Types | |
enum | DefaultValue { TEXTURE_GENERATED, TEXTURE_UV, INCOMING, NORMAL, POSITION, NONE } |
Public Member Functions | |
ShaderInput (ShaderNode *parent, const char *name, ShaderSocketType type) | |
void | set (const float3 &v) |
void | set (float f) |
Public Attributes | |
const char * | name |
ShaderSocketType | type |
ShaderNode * | parent |
ShaderOutput * | link |
DefaultValue | default_value |
float3 | value |
int | stack_offset |
bool | osl_only |
CCL_NAMESPACE_BEGIN ShaderInput::ShaderInput | ( | ShaderNode * | parent, |
const char * | name, | ||
ShaderSocketType | type | ||
) |
Definition at line 31 of file graph.cpp.
References default_value, link, make_float3(), name, NONE, NULL, osl_only, parent, stack_offset, SVM_STACK_INVALID, type, and value.
void ShaderInput::set | ( | const float3 & | v | ) | [inline] |
Definition at line 108 of file graph.h.
References value.
Referenced by ShaderGraph::remove_proxy_nodes(), and set_default_value().
void ShaderInput::set | ( | float | f | ) | [inline] |
Definition at line 109 of file graph.h.
References make_float3(), and value.
Definition at line 117 of file graph.h.
Referenced by ShaderNode::add_input(), ShaderNode::attributes(), ShaderGraph::bump_from_displacement(), ShaderGraph::default_inputs(), and ShaderInput().
Definition at line 115 of file graph.h.
Referenced by ShaderNode::attributes(), ShaderGraph::break_cycles(), ShaderGraph::bump_from_displacement(), VolumeNode::compile(), BsdfNode::compile(), SVMCompiler::compile_type(), ShaderGraph::connect(), ShaderGraph::copy_nodes(), ShaderGraph::default_inputs(), ShaderGraph::disconnect(), SVMCompiler::find_dependencies(), ShaderGraph::find_dependencies(), SVMCompiler::generate_closure(), SVMCompiler::generate_multi_closure(), SVMCompiler::generate_svm_nodes(), SVMCompiler::node_skip_input(), ShaderGraph::remove_proxy_nodes(), ShaderInput(), SVMCompiler::stack_assign(), SVMCompiler::stack_clear_temporary(), SVMCompiler::stack_clear_users(), and SVMCompiler::stack_link().
const char* ShaderInput::name |
Definition at line 111 of file graph.h.
Referenced by ShaderGraph::copy_nodes(), ShaderNode::input(), and ShaderInput().
Definition at line 121 of file graph.h.
Referenced by ShaderNode::add_input(), ShaderGraph::default_inputs(), and ShaderInput().
Definition at line 114 of file graph.h.
Referenced by ShaderGraph::copy_nodes(), and ShaderInput().
Definition at line 120 of file graph.h.
Referenced by VolumeNode::compile(), BsdfNode::compile(), SVMCompiler::compile_type(), SVMCompiler::generate_closure(), SVMCompiler::generate_multi_closure(), ShaderInput(), SVMCompiler::stack_assign(), SVMCompiler::stack_backup(), SVMCompiler::stack_clear_temporary(), SVMCompiler::stack_clear_users(), and SVMCompiler::stack_restore().
Definition at line 112 of file graph.h.
Referenced by ShaderGraph::connect(), set_default_value(), ShaderInput(), SVMCompiler::stack_assign(), and SVMCompiler::stack_clear_temporary().
Definition at line 118 of file graph.h.
Referenced by ShaderManager::add_default(), ShaderNode::add_input(), VolumeNode::compile(), BsdfNode::compile(), ShaderGraph::remove_proxy_nodes(), set(), ShaderInput(), and SVMCompiler::stack_assign().