|
Blender V4.3
|
#include <shader_graph.h>
Public Member Functions | |
| ShaderInput (const SocketType &socket_type_, ShaderNode *parent_) | |
| ustring | name () const |
| int | flags () const |
| SocketType::Type | type () const |
| void | set (float f) |
| void | set (float3 f) |
| void | set (int f) |
| void | disconnect () |
Public Attributes | |
| const SocketType & | socket_type |
| ShaderNode * | parent |
| ShaderOutput * | link |
| int | stack_offset |
| bool | constant_folded_in |
Definition at line 67 of file shader_graph.h.
|
inline |
Definition at line 69 of file shader_graph.h.
References constant_folded_in, false, link, NULL, parent, socket_type, stack_offset, and SVM_STACK_INVALID.
| void ShaderInput::disconnect | ( | ) |
Definition at line 48 of file shader_graph.cpp.
Referenced by ShaderGraph::disconnect(), GlossyBsdfNode::simplify_settings(), MetallicBsdfNode::simplify_settings(), OutputAOVNode::simplify_settings(), and PrincipledBsdfNode::simplify_settings().
|
inline |
Definition at line 82 of file shader_graph.h.
References socket_type.
Referenced by ShaderGraph::default_inputs(), and ShaderGraph::remove_proxy_nodes().
|
inline |
Definition at line 78 of file shader_graph.h.
References socket_type.
Referenced by ShaderGraph::connect(), ShaderGraph::copy_nodes(), ShaderGraph::dump_graph(), ShaderNode::input(), and ShaderNode::input().
|
inline |
Definition at line 91 of file shader_graph.h.
References parent, and socket_type.
Referenced by ConstantFolder::make_constant(), ConstantFolder::make_constant(), ConstantFolder::make_constant(), and CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set().
|
inline |
Definition at line 95 of file shader_graph.h.
References parent, and socket_type.
|
inline |
Definition at line 99 of file shader_graph.h.
References parent, and socket_type.
|
inline |
Definition at line 86 of file shader_graph.h.
References socket_type.
Referenced by ConstantFolder::bypass_or_discard(), TextureMapping::compile_end(), ShaderGraph::connect(), ConstantFolder::is_one(), ConstantFolder::is_zero(), set_default_value(), SVMCompiler::stack_assign(), SVMCompiler::stack_clear_temporary(), and ConstantFolder::try_bypass_or_make_constant().
| bool ShaderInput::constant_folded_in |
Definition at line 113 of file shader_graph.h.
Referenced by SVMCompiler::is_linked(), ConstantFolder::make_constant(), ConstantFolder::make_constant(), ConstantFolder::make_constant(), and ShaderInput().
| ShaderOutput* ShaderInput::link |
Definition at line 108 of file shader_graph.h.
Referenced by ConstantFolder::all_inputs_constant(), GlossyBsdfNode::attributes(), MetallicBsdfNode::attributes(), PrincipledBsdfNode::attributes(), PrincipledVolumeNode::attributes(), ShaderGraph::break_cycles(), ShaderGraph::bump_from_displacement(), ConstantFolder::bypass_or_discard(), ShaderGraph::clean(), BsdfNode::compile(), VolumeNode::compile(), SVMCompiler::compile_type(), ShaderGraph::compute_displacement_hash(), ShaderGraph::connect(), AddClosureNode::constant_fold(), BackgroundNode::constant_fold(), BumpNode::constant_fold(), ConvertNode::constant_fold(), CurvesNode::constant_fold(), EmissionNode::constant_fold(), FloatCurveNode::constant_fold(), InvertNode::constant_fold(), MixClosureNode::constant_fold(), ShaderGraph::constant_fold(), ShaderGraph::copy_nodes(), ImageTextureNode::cull_tiles(), ShaderGraph::default_inputs(), LightManager::device_update_background(), ShaderGraph::disconnect(), disconnect(), ShaderOutput::disconnect(), ShaderNode::equals(), Shader::estimate_emission(), ShaderGraph::finalize(), ShaderGraph::find_dependencies(), SVMCompiler::find_dependencies(), ConstantFolder::fold_mix(), ConstantFolder::fold_mix_color(), ConstantFolder::fold_mix_float(), SVMCompiler::generate_closure_node(), SVMCompiler::generate_multi_closure(), SVMCompiler::generate_svm_nodes(), ShaderManager::get_kernel_features(), SubsurfaceScatteringNode::has_bssrdf_bump(), BsdfBaseNode::has_bump(), PrincipledBsdfNode::has_surface_bssrdf(), PrincipledBsdfNode::has_surface_emission(), PrincipledBsdfNode::has_surface_transparent(), GlossyBsdfNode::is_isotropic(), MetallicBsdfNode::is_isotropic(), SVMCompiler::is_linked(), ConstantFolder::is_one(), ConstantFolder::is_zero(), output_estimate_emission(), ShaderGraph::refine_bump_nodes(), ShaderGraph::relink(), ShaderGraph::relink(), ShaderGraph::remove_proxy_nodes(), ShaderInput(), GlossyBsdfNode::simplify_settings(), MetallicBsdfNode::simplify_settings(), PrincipledBsdfNode::simplify_settings(), SVMCompiler::stack_assign(), SVMCompiler::stack_clear_temporary(), SVMCompiler::stack_clear_users(), SVMCompiler::stack_link(), ShaderGraph::transform_multi_closure(), ConstantFolder::try_bypass_or_make_constant(), and ShaderGraph::verify_volume_output().
| ShaderNode* ShaderInput::parent |
Definition at line 107 of file shader_graph.h.
Referenced by ShaderGraph::connect(), ShaderGraph::constant_fold(), ShaderGraph::copy_nodes(), ShaderGraph::deduplicate_nodes(), ShaderGraph::dump_graph(), ShaderGraph::relink(), ShaderGraph::remove_proxy_nodes(), set(), set(), set(), set_default_value(), ShaderInput(), and SVMCompiler::stack_assign().
| const SocketType& ShaderInput::socket_type |
Definition at line 106 of file shader_graph.h.
Referenced by BsdfNode::compile(), VolumeNode::compile(), ShaderNode::equals(), flags(), ConstantFolder::fold_mix(), ConstantFolder::fold_mix_color(), ConstantFolder::fold_mix_float(), SVMCompiler::generate_closure_node(), ConstantFolder::is_one(), ConstantFolder::is_zero(), name(), output_estimate_emission(), UsdToCyclesMapping::parameterName(), ShaderGraph::relink(), ShaderGraph::remove_proxy_nodes(), set(), set(), set(), set_default_value(), ShaderInput(), SVMCompiler::stack_assign(), ShaderGraph::transform_multi_closure(), ConstantFolder::try_bypass_or_make_constant(), and type().
| int ShaderInput::stack_offset |
Definition at line 109 of file shader_graph.h.
Referenced by SVMCompiler::compile_type(), SVMCompiler::generate_multi_closure(), ShaderInput(), SVMCompiler::stack_assign(), and SVMCompiler::stack_clear_temporary().