Blender V4.3
ShaderInput Class Reference

#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 SocketTypesocket_type
ShaderNodeparent
ShaderOutputlink
int stack_offset
bool constant_folded_in

Detailed Description

Definition at line 67 of file shader_graph.h.

Constructor & Destructor Documentation

◆ ShaderInput()

ShaderInput::ShaderInput ( const SocketType & socket_type_,
ShaderNode * parent_ )
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.

Member Function Documentation

◆ disconnect()

◆ flags()

int ShaderInput::flags ( ) const
inline

Definition at line 82 of file shader_graph.h.

References socket_type.

Referenced by ShaderGraph::default_inputs(), and ShaderGraph::remove_proxy_nodes().

◆ name()

ustring ShaderInput::name ( ) const
inline

◆ set() [1/3]

◆ set() [2/3]

void ShaderInput::set ( float3 f)
inline

Definition at line 95 of file shader_graph.h.

References parent, and socket_type.

◆ set() [3/3]

void ShaderInput::set ( int f)
inline

Definition at line 99 of file shader_graph.h.

References parent, and socket_type.

◆ type()

Member Data Documentation

◆ constant_folded_in

◆ link

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

◆ parent

◆ socket_type

◆ stack_offset


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