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.

Member Function Documentation

◆ disconnect()

◆ flags()

int ShaderInput::flags ( ) const
inline

Definition at line 82 of file shader_graph.h.

References SocketType::flags, and socket_type.

Referenced by 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()

SocketType::Type ShaderInput::type ( ) const
inline

Definition at line 86 of file shader_graph.h.

References socket_type, and SocketType::type.

Referenced by TextureMapping::compile_end().

Member Data Documentation

◆ constant_folded_in

bool ShaderInput::constant_folded_in

◆ link

ShaderOutput* ShaderInput::link

Definition at line 108 of file shader_graph.h.

Referenced by GlossyBsdfNode::attributes(), MetallicBsdfNode::attributes(), PrincipledBsdfNode::attributes(), PrincipledVolumeNode::attributes(), ShaderGraph::bump_from_displacement(), BsdfNode::compile(), VolumeNode::compile(), SVMCompiler::compile_type(), ShaderGraph::compute_displacement_hash(), 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(), disconnect(), ShaderOutput::disconnect(), ShaderNode::equals(), Shader::estimate_emission(), MapRangeNode::expand(), 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(), GlossyBsdfNode::simplify_settings(), MetallicBsdfNode::simplify_settings(), PrincipledBsdfNode::simplify_settings(), ShaderGraph::transform_multi_closure(), and ShaderGraph::verify_volume_output().

◆ parent

ShaderNode* ShaderInput::parent

Definition at line 107 of file shader_graph.h.

Referenced by set(), set(), and set().

◆ socket_type

◆ stack_offset

int ShaderInput::stack_offset

Definition at line 109 of file shader_graph.h.

Referenced by SVMCompiler::generate_multi_closure().


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