Blender  V2.93
Public Member Functions | Public Attributes | List of all members
ShaderInput Class Reference

#include <graph.h>

Public Member Functions

 ShaderInput (const SocketType &socket_type_, ShaderNode *parent_)
 
ustring name ()
 
int flags ()
 
SocketType::Type type ()
 
void set (float f)
 
void set (float3 f)
 
void disconnect ()
 

Public Attributes

const SocketTypesocket_type
 
ShaderNodeparent
 
ShaderOutputlink
 
int stack_offset
 

Detailed Description

Definition at line 79 of file graph.h.

Constructor & Destructor Documentation

◆ ShaderInput()

ShaderInput::ShaderInput ( const SocketType socket_type_,
ShaderNode parent_ 
)
inline

Definition at line 81 of file graph.h.

Member Function Documentation

◆ disconnect()

void ShaderInput::disconnect ( )

◆ flags()

int ShaderInput::flags ( )
inline

◆ name()

ustring ShaderInput::name ( )
inline

◆ set() [1/2]

void ShaderInput::set ( float  f)
inline

Definition at line 99 of file graph.h.

References parent, and socket_type.

Referenced by ConstantFolder::make_constant(), and CCL_NAMESPACE_BEGIN::ShaderNodeBuilder< T >::set().

◆ set() [2/2]

void ShaderInput::set ( float3  f)
inline

Definition at line 103 of file graph.h.

References parent, and socket_type.

◆ type()

SocketType::Type ShaderInput::type ( )
inline

Member Data Documentation

◆ link

ShaderOutput* ShaderInput::link

Definition at line 112 of file graph.h.

Referenced by ConstantFolder::all_inputs_constant(), ShaderNode::attributes(), AnisotropicBsdfNode::attributes(), PrincipledBsdfNode::attributes(), PrincipledVolumeNode::attributes(), ShaderGraph::break_cycles(), ShaderGraph::bump_from_displacement(), ConstantFolder::bypass_or_discard(), ShaderGraph::clean(), PrincipledBsdfNode::compile(), VolumeNode::compile(), BsdfNode::compile(), SVMCompiler::compile_type(), ShaderGraph::compute_displacement_hash(), ShaderGraph::connect(), ConvertNode::constant_fold(), EmissionNode::constant_fold(), BackgroundNode::constant_fold(), AddClosureNode::constant_fold(), MixClosureNode::constant_fold(), InvertNode::constant_fold(), BumpNode::constant_fold(), CurvesNode::constant_fold(), ShaderGraph::constant_fold(), ShaderGraph::copy_nodes(), ImageTextureNode::cull_tiles(), ShaderGraph::default_inputs(), LightManager::device_update_background(), disconnect(), ShaderOutput::disconnect(), ShaderGraph::disconnect(), ShaderNode::equals(), PrincipledBsdfNode::expand(), MapRangeNode::expand(), ShaderGraph::finalize(), SVMCompiler::find_dependencies(), ShaderGraph::find_dependencies(), ConstantFolder::fold_mix(), SVMCompiler::generate_closure_node(), SVMCompiler::generate_multi_closure(), SVMCompiler::generate_svm_nodes(), ShaderManager::get_requested_features(), SubsurfaceScatteringNode::has_bssrdf_bump(), BsdfBaseNode::has_bump(), PrincipledBsdfNode::has_integrator_dependency(), GlossyBsdfNode::has_integrator_dependency(), GlassBsdfNode::has_integrator_dependency(), RefractionBsdfNode::has_integrator_dependency(), PrincipledBsdfNode::has_surface_bssrdf(), Shader::is_constant_emission(), ConstantFolder::is_one(), ConstantFolder::is_zero(), ShaderGraph::refine_bump_nodes(), ShaderGraph::relink(), ShaderNode::remove_input(), ShaderGraph::remove_proxy_nodes(), Shader::set_graph(), GlossyBsdfNode::simplify_settings(), GlassBsdfNode::simplify_settings(), RefractionBsdfNode::simplify_settings(), SVMCompiler::stack_assign(), SVMCompiler::stack_assign_if_linked(), 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

ShaderNode* ShaderInput::parent

◆ socket_type

const SocketType& ShaderInput::socket_type

◆ stack_offset

int ShaderInput::stack_offset

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