Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/graph/node_type.h
| Show All 22 Lines | |||||
| #include "util/util_string.h" | #include "util/util_string.h" | ||||
| #include "util/util_vector.h" | #include "util/util_vector.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| struct Node; | struct Node; | ||||
| struct NodeType; | struct NodeType; | ||||
| typedef uint64_t SocketModifiedFlag; | |||||
| /* Socket Type */ | /* Socket Type */ | ||||
| struct SocketType { | struct SocketType { | ||||
| enum Type { | enum Type { | ||||
| UNDEFINED, | UNDEFINED, | ||||
| BOOLEAN, | BOOLEAN, | ||||
| FLOAT, | FLOAT, | ||||
| ▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | struct SocketType { | ||||
| ustring name; | ustring name; | ||||
| Type type; | Type type; | ||||
| int struct_offset; | int struct_offset; | ||||
| const void *default_value; | const void *default_value; | ||||
| const NodeEnum *enum_values; | const NodeEnum *enum_values; | ||||
| const NodeType **node_type; | const NodeType **node_type; | ||||
| int flags; | int flags; | ||||
| ustring ui_name; | ustring ui_name; | ||||
| SocketModifiedFlag modified_flag_bit; | |||||
| size_t size() const; | size_t size() const; | ||||
| bool is_array() const; | bool is_array() const; | ||||
| static size_t size(Type type); | static size_t size(Type type); | ||||
| static size_t max_size(); | static size_t max_size(); | ||||
| static ustring type_name(Type type); | static ustring type_name(Type type); | ||||
| static void *zero_default_value(); | static void *zero_default_value(); | ||||
| static bool is_float3(Type type); | static bool is_float3(Type type); | ||||
| ▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines | |||||