Blender V5.0
ShaderOutput Class Reference

#include <shader_graph.h>

Public Member Functions

 ShaderOutput (const SocketType &socket_type_, ShaderNode *parent_)
ustring name () const
SocketType::Type type () const
void disconnect ()

Public Attributes

const SocketTypesocket_type
ShaderNodeparent
vector< ShaderInput * > links
int stack_offset = SVM_STACK_INVALID

Detailed Description

Definition at line 118 of file shader_graph.h.

Constructor & Destructor Documentation

◆ ShaderOutput()

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

Definition at line 120 of file shader_graph.h.

References parent, and socket_type.

Member Function Documentation

◆ disconnect()

void ShaderOutput::disconnect ( )

Definition at line 56 of file shader_graph.cpp.

References links.

Referenced by ShaderGraph::disconnect().

◆ name()

ustring ShaderOutput::name ( ) const
inline

Definition at line 125 of file shader_graph.h.

References socket_type.

Referenced by ConstantFolder::bypass(), ShaderGraph::connect(), and ShaderGraph::dump_graph().

◆ type()

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

Definition at line 129 of file shader_graph.h.

References socket_type.

Referenced by ShaderGraph::connect().

Member Data Documentation

◆ links

◆ parent

◆ socket_type

const SocketType& ShaderOutput::socket_type

Definition at line 136 of file shader_graph.h.

Referenced by name(), ShaderOutput(), and type().

◆ stack_offset

int ShaderOutput::stack_offset = SVM_STACK_INVALID

Definition at line 139 of file shader_graph.h.


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