Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/graph.h
| Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
| * | * | ||||
| * Input socket for a shader node. May be linked to an output or not. If not | * Input socket for a shader node. May be linked to an output or not. If not | ||||
| * linked, it will either get a fixed default value, or e.g. a texture | * linked, it will either get a fixed default value, or e.g. a texture | ||||
| * coordinate. */ | * coordinate. */ | ||||
| class ShaderInput { | class ShaderInput { | ||||
| public: | public: | ||||
| ShaderInput(const SocketType &socket_type_, ShaderNode *parent_) | ShaderInput(const SocketType &socket_type_, ShaderNode *parent_) | ||||
| : socket_type(socket_type_), parent(parent_), link(NULL), stack_offset(SVM_STACK_INVALID) | : socket_type(socket_type_), | ||||
| parent(parent_), | |||||
| link(NULL), | |||||
| stack_offset(SVM_STACK_INVALID), | |||||
| constant_folded_in(false) | |||||
| { | { | ||||
| } | } | ||||
| ustring name() | ustring name() | ||||
| { | { | ||||
| return socket_type.ui_name; | return socket_type.ui_name; | ||||
| } | } | ||||
| int flags() | int flags() | ||||
| Show All 15 Lines | public: | ||||
| } | } | ||||
| void disconnect(); | void disconnect(); | ||||
| const SocketType &socket_type; | const SocketType &socket_type; | ||||
| ShaderNode *parent; | ShaderNode *parent; | ||||
| ShaderOutput *link; | ShaderOutput *link; | ||||
| int stack_offset; /* for SVM compiler */ | int stack_offset; /* for SVM compiler */ | ||||
| /* Keeps track of whether a constant was folded in this socket, to avoid over-optimizing when the | |||||
| * link is null. */ | |||||
| bool constant_folded_in; | |||||
| }; | }; | ||||
| /* Output | /* Output | ||||
| * | * | ||||
| * Output socket for a shader node. */ | * Output socket for a shader node. */ | ||||
| class ShaderOutput { | class ShaderOutput { | ||||
| public: | public: | ||||
| ▲ Show 20 Lines • Show All 269 Lines • Show Last 20 Lines | |||||