Blender V5.3
ShaderInput Class Referencefinal

#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

Detailed Description

Definition at line 97 of file shader_graph.h.

Member Function Documentation

◆ disconnect()

void ShaderInput::disconnect ( )
overridevirtual

◆ flags()

int ShaderInput::flags ( ) const
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().

◆ set() [1/3]

◆ set() [2/3]

void ShaderInput::set ( const float3 f)
inline

Definition at line 109 of file shader_graph.h.

References ShaderIO::parent, and ShaderIO::socket_type.

◆ set() [3/3]

void ShaderInput::set ( const int f)
inline

Definition at line 113 of file shader_graph.h.

References ShaderIO::parent, and ShaderIO::socket_type.

◆ ShaderIO()

ShaderIO::ShaderIO ( const SocketType & socket_type_,
ShaderNode * parent_ )
inline

Definition at line 68 of file shader_graph.h.

Member Data Documentation

◆ constant_folded_in

bool ShaderInput::constant_folded_in = false

◆ link

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().


The documentation for this class was generated from the following files: