|
Blender V4.5
|
#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 (const float f) |
| void | set (const float3 f) |
| void | set (const int f) |
| void | disconnect () |
Public Attributes | |
| const SocketType & | socket_type |
| ShaderNode * | parent |
| ShaderOutput * | link = nullptr |
| int | stack_offset = SVM_STACK_INVALID |
| bool | constant_folded_in = false |
Definition at line 67 of file shader_graph.h.
|
inline |
Definition at line 69 of file shader_graph.h.
References parent, and socket_type.
| void ShaderInput::disconnect | ( | ) |
Definition at line 48 of file shader_graph.cpp.
References link.
Referenced by ShaderGraph::disconnect(), GlossyBsdfNode::simplify_settings(), MetallicBsdfNode::simplify_settings(), and PrincipledBsdfNode::simplify_settings().
|
inline |
Definition at line 79 of file shader_graph.h.
References socket_type.
|
inline |
Definition at line 75 of file shader_graph.h.
References socket_type.
Referenced by ShaderGraph::connect(), and ShaderGraph::dump_graph().
|
inline |
Definition at line 88 of file shader_graph.h.
References parent, and socket_type.
Referenced by ConstantFolder::fold_mix_color(), ConstantFolder::make_constant(), ConstantFolder::make_constant(), ConstantFolder::make_constant(), and CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set().
|
inline |
Definition at line 92 of file shader_graph.h.
References parent, and socket_type.
|
inline |
Definition at line 96 of file shader_graph.h.
References parent, and socket_type.
|
inline |
Definition at line 83 of file shader_graph.h.
References socket_type.
Referenced by TextureMapping::compile_end(), and ShaderGraph::connect().
| bool ShaderInput::constant_folded_in = false |
Definition at line 110 of file shader_graph.h.
Referenced by ConstantFolder::make_constant(), ConstantFolder::make_constant(), and ConstantFolder::make_constant().
| ShaderOutput* ShaderInput::link = nullptr |
Definition at line 105 of file shader_graph.h.
Referenced by GlossyBsdfNode::attributes(), MetallicBsdfNode::attributes(), PrincipledBsdfNode::attributes(), PrincipledVolumeNode::attributes(), ShaderGraph::bump_from_displacement(), 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(), ImageTextureNode::cull_tiles(), LightManager::device_update_background(), ShaderGraph::disconnect(), disconnect(), ShaderNode::equals(), Shader::estimate_emission(), ShaderGraph::finalize(), ConstantFolder::fold_mix(), ConstantFolder::fold_mix_color(), ConstantFolder::fold_mix_float(), SVMCompiler::generate_closure_node(), SVMCompiler::generate_multi_closure(), 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(), output_estimate_emission(), ShaderGraph::refine_bump_nodes(), ShaderGraph::relink(), ShaderGraph::relink(), GlossyBsdfNode::simplify_settings(), MetallicBsdfNode::simplify_settings(), PrincipledBsdfNode::simplify_settings(), ShaderGraph::transform_multi_closure(), ConstantFolder::try_bypass_or_make_constant(), and ShaderGraph::verify_volume_output().
| ShaderNode* ShaderInput::parent |
Definition at line 104 of file shader_graph.h.
Referenced by ShaderGraph::connect(), ShaderGraph::relink(), set(), set(), set(), and ShaderInput().
| const SocketType& ShaderInput::socket_type |
Definition at line 103 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(), name(), output_estimate_emission(), UsdToCyclesMapping::parameterName(), ShaderGraph::relink(), set(), set(), set(), ShaderInput(), ShaderGraph::transform_multi_closure(), and type().
| int ShaderInput::stack_offset = SVM_STACK_INVALID |
Definition at line 106 of file shader_graph.h.
Referenced by SVMCompiler::generate_multi_closure().