|
Blender V5.0
|
#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 68 of file shader_graph.h.
|
inline |
Definition at line 70 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(), and ShaderNode::disconnect_unused_input().
|
inline |
Definition at line 80 of file shader_graph.h.
References socket_type.
|
inline |
Definition at line 76 of file shader_graph.h.
References socket_type.
Referenced by ShaderGraph::connect(), and ShaderGraph::dump_graph().
|
inline |
Definition at line 89 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 93 of file shader_graph.h.
References parent, and socket_type.
|
inline |
Definition at line 97 of file shader_graph.h.
References parent, and socket_type.
|
inline |
Definition at line 84 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 111 of file shader_graph.h.
Referenced by ConstantFolder::make_constant(), ConstantFolder::make_constant(), and ConstantFolder::make_constant().
| ShaderOutput* ShaderInput::link = nullptr |
Definition at line 106 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::disconnect_unused_input(), 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_nonzero_weight(), PrincipledBsdfNode::has_surface_bssrdf(), PrincipledBsdfNode::has_surface_emission(), PrincipledBsdfNode::has_surface_transparent(), GlossyBsdfNode::is_isotropic(), MetallicBsdfNode::is_isotropic(), MapRangeNode::is_linear_operation(), VectorMapRangeNode::is_linear_operation(), ShaderGraph::optimize_volume_output(), output_estimate_emission(), ShaderGraph::refine_bump_nodes(), ShaderGraph::relink(), ShaderGraph::relink(), ShaderGraph::transform_multi_closure(), and ConstantFolder::try_bypass_or_make_constant().
| ShaderNode* ShaderInput::parent |
Definition at line 105 of file shader_graph.h.
Referenced by ShaderGraph::connect(), ShaderGraph::relink(), set(), set(), set(), and ShaderInput().
| const SocketType& ShaderInput::socket_type |
Definition at line 104 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(), PrincipledBsdfNode::has_nonzero_weight(), 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 107 of file shader_graph.h.
Referenced by SVMCompiler::generate_multi_closure().