|
Blender V5.3
|
#include <shader_graph.h>
Inherits ShaderIO.
Public Member Functions | |
| int | flags () const |
| void | set (const float f) |
| void | set (const float3 f) |
| void | set (const int f) |
| void | disconnect () override |
| ShaderIO (const SocketType &socket_type_, ShaderNode *parent_) | |
| Public Member Functions inherited from ShaderIO | |
| ShaderIO (const SocketType &socket_type_, ShaderNode *parent_) | |
| ustring | name () const |
| SocketType::Type | type () const |
Public Attributes | |
| ShaderOutput * | link = nullptr |
| bool | constant_folded_in = false |
| Public Attributes inherited from ShaderIO | |
| const SocketType & | socket_type |
| ShaderNode * | parent |
| int | stack_offset = SVM_STACK_INVALID |
Definition at line 97 of file shader_graph.h.
|
overridevirtual |
Reimplemented from ShaderIO.
Definition at line 48 of file shader_graph.cpp.
References link, and ShaderOutput::links.
Referenced by ShaderGraph::disconnect(), ShaderNode::disconnect_unused_input(), and OutputAOVNode::simplify_settings().
|
inline |
Definition at line 101 of file shader_graph.h.
References SocketType::flags, and ShaderIO::socket_type.
Referenced by ShaderNode::attributes(), and ShaderGraph::default_inputs().
|
inline |
Definition at line 105 of file shader_graph.h.
References ShaderIO::parent, and ShaderIO::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 109 of file shader_graph.h.
References ShaderIO::parent, and ShaderIO::socket_type.
|
inline |
Definition at line 113 of file shader_graph.h.
References ShaderIO::parent, and ShaderIO::socket_type.
|
inline |
Definition at line 68 of file shader_graph.h.
| bool ShaderInput::constant_folded_in = false |
Definition at line 124 of file shader_graph.h.
Referenced by SVMCompiler::input_link(), ConstantFolder::make_constant(), ConstantFolder::make_constant(), and ConstantFolder::make_constant().
| ShaderOutput* ShaderInput::link = nullptr |
Definition at line 120 of file shader_graph.h.
Referenced by ConstantFolder::all_inputs_constant(), ShaderNode::attributes(), ShaderGraph::break_cycles(), ShaderGraph::bump_from_displacement(), ConstantFolder::bypass_or_discard(), ShaderGraph::clean(), VolumeNode::compile(), SVMCompiler::compile_type(), ShaderGraph::compute_displacement_hash(), ShaderGraph::connect(), AddClosureNode::constant_fold(), BumpNode::constant_fold(), ConvertNode::constant_fold(), CurvesNode::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(), ShaderNode::disconnect_unused_input(), 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_nonzero_weight(), PrincipledBsdfNode::has_surface_emission(), SVMCompiler::input_float(), SVMCompiler::input_float3(), SVMCompiler::input_int(), SVMCompiler::input_link(), MapRangeNode::is_linear_operation(), MathNode::is_linear_operation(), MixColorNode::is_linear_operation(), MixFloatNode::is_linear_operation(), MixNode::is_linear_operation(), MixVectorNode::is_linear_operation(), MixVectorNonUniformNode::is_linear_operation(), VectorMapRangeNode::is_linear_operation(), VectorMathNode::is_linear_operation(), ConstantFolder::is_one(), ConstantFolder::is_zero(), mark_nodes_requiring_derivatives(), ShaderGraph::optimize_volume_output(), output_estimate_emission(), ShaderGraph::refine_bump_nodes(), ShaderGraph::relink(), ShaderGraph::relink(), ShaderNode::remove_input(), ShaderGraph::remove_proxy_nodes(), SVMCompiler::stack_assign(), SVMCompiler::stack_clear_temporary(), SVMCompiler::stack_clear_users(), SVMCompiler::stack_link(), PrincipledBsdfNode::subsurface_has_positive_weight(), ShaderGraph::transform_multi_closure(), and ConstantFolder::try_bypass_or_make_constant().