Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_node_types.h
| Show First 20 Lines • Show All 497 Lines • ▼ Show 20 Lines | typedef struct bNodeTree { | ||||
| FieldInferencingInterfaceHandle *field_inferencing_interface; | FieldInferencingInterfaceHandle *field_inferencing_interface; | ||||
| int type; | int type; | ||||
| char _pad1[4]; | char _pad1[4]; | ||||
| /** | /** | ||||
| * Sockets in groups have unique identifiers, adding new sockets always | * Sockets in groups have unique identifiers, adding new sockets always | ||||
| * will increase this counter. | * will increase this counter. | ||||
jbakker: Would it be an idea to introduce a bNodeTree_Runtime struct?
| |||||
Done Inline ActionsYeah, we wanted to do that for a while now, but postponed it every time so far.. JacquesLucke: Yeah, we wanted to do that for a while now, but postponed it every time so far..
We'd probably… | |||||
Not Done Inline ActionsOk that is definitely more work. So ok from me. jbakker: Ok that is definitely more work. So ok from me. | |||||
| */ | */ | ||||
| int cur_index; | int cur_index; | ||||
| int flag; | int flag; | ||||
| /** | /** | ||||
| * Keeps track of what changed in the node tree until the next update. | * Keeps track of what changed in the node tree until the next update. | ||||
| * Should not be changed directly, instead use the functions in `BKE_node_tree_update.h`. | * Should not be changed directly, instead use the functions in `BKE_node_tree_update.h`. | ||||
| * #eNodeTreeChangedFlag. | * #eNodeTreeChangedFlag. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | typedef struct bNodeTree { | ||||
| /** \warning may be called by different threads */ | /** \warning may be called by different threads */ | ||||
| void (*stats_draw)(void *, const char *str); | void (*stats_draw)(void *, const char *str); | ||||
| int (*test_break)(void *); | int (*test_break)(void *); | ||||
| void (*update_draw)(void *); | void (*update_draw)(void *); | ||||
| void *tbh, *prh, *sdh, *udh; | void *tbh, *prh, *sdh, *udh; | ||||
| /** Image representing what the node group does. */ | /** Image representing what the node group does. */ | ||||
| struct PreviewImage *preview; | struct PreviewImage *preview; | ||||
| /* #eNodeTreeRuntimeFlag. */ | |||||
| uint8_t runtime_flag; | |||||
| char _pad2[7]; | |||||
| } bNodeTree; | } bNodeTree; | ||||
| /** #NodeTree.type, index */ | /** #NodeTree.type, index */ | ||||
| #define NTREE_UNDEFINED -2 /* Represents #NodeTreeTypeUndefined type. */ | #define NTREE_UNDEFINED -2 /* Represents #NodeTreeTypeUndefined type. */ | ||||
| #define NTREE_CUSTOM -1 /* for dynamically registered custom types */ | #define NTREE_CUSTOM -1 /* for dynamically registered custom types */ | ||||
| #define NTREE_SHADER 0 | #define NTREE_SHADER 0 | ||||
| #define NTREE_COMPOSIT 1 | #define NTREE_COMPOSIT 1 | ||||
| Show All 12 Lines | |||||
| /* #define NTREE_IS_LOCALIZED (1 << 5) */ | /* #define NTREE_IS_LOCALIZED (1 << 5) */ | ||||
| /* tree->execution_mode */ | /* tree->execution_mode */ | ||||
| typedef enum eNodeTreeExecutionMode { | typedef enum eNodeTreeExecutionMode { | ||||
| NTREE_EXECUTION_MODE_TILED = 0, | NTREE_EXECUTION_MODE_TILED = 0, | ||||
| NTREE_EXECUTION_MODE_FULL_FRAME = 1, | NTREE_EXECUTION_MODE_FULL_FRAME = 1, | ||||
| } eNodeTreeExecutionMode; | } eNodeTreeExecutionMode; | ||||
| typedef enum eNodeTreeRuntimeFlag { | |||||
| NTREE_RUNTIME_FLAG_HAS_IMAGE_ANIMATION = 1 << 0, | |||||
| } eNodeTreeRuntimeFlag; | |||||
| /* socket value structs for input buttons | /* socket value structs for input buttons | ||||
| * DEPRECATED now using ID properties | * DEPRECATED now using ID properties | ||||
| */ | */ | ||||
| typedef struct bNodeSocketValueInt { | typedef struct bNodeSocketValueInt { | ||||
| /** RNA subtype. */ | /** RNA subtype. */ | ||||
| int subtype; | int subtype; | ||||
| int value; | int value; | ||||
| ▲ Show 20 Lines • Show All 1,529 Lines • Show Last 20 Lines | |||||
Would it be an idea to introduce a bNodeTree_Runtime struct?