Blender
V3.3
|
#include <shader_nodes.h>
Static Public Member Functions | |
static OSLNode * | create (ShaderGraph *graph, size_t num_inputs, const OSLNode *from=NULL) |
static void | operator delete (void *ptr) |
static void | operator delete (void *, void *) |
Public Attributes | |
string | filepath |
string | bytecode_hash |
![]() | |
vector< ShaderInput * > | inputs |
vector< ShaderOutput * > | outputs |
int | id |
ShaderBump | bump |
ShaderNodeSpecialType | special_type |
![]() | |
ustring | name |
const NodeType * | type |
InternalNode | internal |
LeafNode | leaf |
Additional Inherited Members | |
![]() | |
template<typename T > | |
void | set_if_different (const SocketType &input, T value) |
void | set_if_different (const SocketType &input, Node *value) |
template<typename T > | |
void | set_if_different (const SocketType &input, array< T > &value) |
void | set_if_different (const SocketType &input, array< Node * > &value) |
void | dereference_all_used_nodes () |
![]() | |
template<typename T > | |
static T & | get_socket_value (const Node *node, const SocketType &socket) |
![]() | |
const NodeOwner * | owner |
int | ref_count {0} |
SocketModifiedFlags | socket_modified |
Definition at line 1465 of file shader_nodes.h.
OSLNode::~OSLNode | ( | ) |
Definition at line 6982 of file shader_nodes.cpp.
References Node::type.
void OSLNode::add_input | ( | ustring | name, |
SocketType::Type | type | ||
) |
Definition at line 7026 of file shader_nodes.cpp.
References input_default_value(), SocketType::LINKABLE, Node::name, NULL, offset, and Node::type.
void OSLNode::add_output | ( | ustring | name, |
SocketType::Type | type | ||
) |
Definition at line 7034 of file shader_nodes.cpp.
References Node::name, and Node::type.
|
virtual |
Implements ShaderNode.
Definition at line 6987 of file shader_nodes.cpp.
References create(), graph, and ShaderNode::inputs.
|
static |
Definition at line 6992 of file shader_nodes.cpp.
References align_up(), from, graph, SocketType::max_size(), and node.
Referenced by clone().
|
inlinevirtual |
Reimplemented from ShaderNode.
Definition at line 1500 of file shader_nodes.h.
|
inlinevirtual |
Reimplemented from ShaderNode.
Definition at line 1491 of file shader_nodes.h.
|
inlinevirtual |
Reimplemented from ShaderNode.
Definition at line 1495 of file shader_nodes.h.
char * OSLNode::input_default_value | ( | ) |
Definition at line 7018 of file shader_nodes.cpp.
References align_up(), NodeType::inputs, SocketType::max_size(), and Node::type.
Referenced by add_input().
Definition at line 1477 of file shader_nodes.h.
Definition at line 1470 of file shader_nodes.h.
References ptr.
string OSLNode::bytecode_hash |
Definition at line 1506 of file shader_nodes.h.
Referenced by ShaderGraph::compute_displacement_hash().
string OSLNode::filepath |
Definition at line 1505 of file shader_nodes.h.