Blender  V3.3
Public Member Functions | Public Attributes | List of all members
ShaderInput Class Reference

#include <shader_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
 
bool constant_folded_in
 

Detailed Description

Definition at line 66 of file shader_graph.h.

Constructor & Destructor Documentation

◆ ShaderInput()

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

Definition at line 68 of file shader_graph.h.

Member Function Documentation

◆ disconnect()

void ShaderInput::disconnect ( )

◆ flags()

int ShaderInput::flags ( )
inline

Definition at line 81 of file shader_graph.h.

References SocketType::flags, and socket_type.

Referenced by ShaderNode::attributes(), and ShaderGraph::remove_proxy_nodes().

◆ name()

ustring ShaderInput::name ( )
inline

◆ set() [1/2]

void ShaderInput::set ( float  f)
inline

◆ set() [2/2]

void ShaderInput::set ( float3  f)
inline

Definition at line 94 of file shader_graph.h.

References parent, and socket_type.

◆ type()

SocketType::Type ShaderInput::type ( )
inline

Definition at line 85 of file shader_graph.h.

References socket_type, and SocketType::type.

Referenced by TextureMapping::compile_end(), and ShaderGraph::connect().

Member Data Documentation

◆ constant_folded_in

bool ShaderInput::constant_folded_in

Definition at line 108 of file shader_graph.h.

Referenced by ConstantFolder::make_constant().

◆ link

ShaderOutput* ShaderInput::link

Definition at line 103 of file shader_graph.h.

Referenced by ShaderNode::attributes(), AnisotropicBsdfNode::attributes(), PrincipledBsdfNode::attributes(), PrincipledVolumeNode::attributes(), ShaderGraph::bump_from_displacement(), 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(), FloatCurveNode::constant_fold(), CurvesNode::constant_fold(), ShaderGraph::constant_fold(), ImageTextureNode::cull_tiles(), LightManager::device_update_background(), disconnect(), ShaderOutput::disconnect(), ShaderGraph::disconnect(), ShaderNode::equals(), PrincipledBsdfNode::expand(), MapRangeNode::expand(), ShaderGraph::finalize(), ConstantFolder::fold_mix(), SVMCompiler::generate_closure_node(), SVMCompiler::generate_multi_closure(), ShaderManager::get_kernel_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(), ShaderGraph::refine_bump_nodes(), ShaderGraph::relink(), ShaderNode::remove_input(), Shader::set_graph(), GlossyBsdfNode::simplify_settings(), GlassBsdfNode::simplify_settings(), RefractionBsdfNode::simplify_settings(), 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

Definition at line 104 of file shader_graph.h.

Referenced by SVMCompiler::generate_multi_closure().


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