Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/scene/shader_graph.h
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | ShaderInput(const SocketType &socket_type_, ShaderNode *parent_) | ||||
| : socket_type(socket_type_), | : socket_type(socket_type_), | ||||
| parent(parent_), | parent(parent_), | ||||
| link(NULL), | link(NULL), | ||||
| stack_offset(SVM_STACK_INVALID), | stack_offset(SVM_STACK_INVALID), | ||||
| constant_folded_in(false) | constant_folded_in(false) | ||||
| { | { | ||||
| } | } | ||||
| ustring name() | ustring name() const | ||||
| { | { | ||||
| return socket_type.ui_name; | return socket_type.ui_name; | ||||
| } | } | ||||
| int flags() | int flags() const | ||||
| { | { | ||||
| return socket_type.flags; | return socket_type.flags; | ||||
| } | } | ||||
| SocketType::Type type() | SocketType::Type type() const | ||||
| { | { | ||||
| return socket_type.type; | return socket_type.type; | ||||
| } | } | ||||
| void set(float f) | void set(float f) | ||||
| { | { | ||||
| ((Node *)parent)->set(socket_type, f); | ((Node *)parent)->set(socket_type, f); | ||||
| } | } | ||||
| Show All 20 Lines | |||||
| class ShaderOutput { | class ShaderOutput { | ||||
| public: | public: | ||||
| ShaderOutput(const SocketType &socket_type_, ShaderNode *parent_) | ShaderOutput(const SocketType &socket_type_, ShaderNode *parent_) | ||||
| : socket_type(socket_type_), parent(parent_), stack_offset(SVM_STACK_INVALID) | : socket_type(socket_type_), parent(parent_), stack_offset(SVM_STACK_INVALID) | ||||
| { | { | ||||
| } | } | ||||
| ustring name() | ustring name() const | ||||
| { | { | ||||
| return socket_type.ui_name; | return socket_type.ui_name; | ||||
| } | } | ||||
| SocketType::Type type() | SocketType::Type type() const | ||||
| { | { | ||||
| return socket_type.type; | return socket_type.type; | ||||
| } | } | ||||
| void disconnect(); | void disconnect(); | ||||
| const SocketType &socket_type; | const SocketType &socket_type; | ||||
| ShaderNode *parent; | ShaderNode *parent; | ||||
| ▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines | |||||