Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_node.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| namespace blender { | namespace blender { | ||||
| class CPPType; | class CPPType; | ||||
| namespace nodes { | namespace nodes { | ||||
| class DNode; | class DNode; | ||||
| class NodeMultiFunctionBuilder; | class NodeMultiFunctionBuilder; | ||||
| class GeoNodeExecParams; | class GeoNodeExecParams; | ||||
| class NodeDeclaration; | class NodeDeclaration; | ||||
| class NodeDeclarationBuilder; | class NodeDeclarationBuilder; | ||||
| namespace internal_link { | |||||
| class NodeInternalLinkBuilder; | |||||
| } | |||||
| class GatherLinkSearchOpParams; | class GatherLinkSearchOpParams; | ||||
| } // namespace nodes | } // namespace nodes | ||||
| namespace realtime_compositor { | namespace realtime_compositor { | ||||
| class Context; | class Context; | ||||
| class NodeOperation; | class NodeOperation; | ||||
| class ShaderNode; | class ShaderNode; | ||||
| } // namespace realtime_compositor | } // namespace realtime_compositor | ||||
| } // namespace blender | } // namespace blender | ||||
| using CPPTypeHandle = blender::CPPType; | using CPPTypeHandle = blender::CPPType; | ||||
| using NodeMultiFunctionBuildFunction = void (*)(blender::nodes::NodeMultiFunctionBuilder &builder); | using NodeMultiFunctionBuildFunction = void (*)(blender::nodes::NodeMultiFunctionBuilder &builder); | ||||
| using NodeGeometryExecFunction = void (*)(blender::nodes::GeoNodeExecParams params); | using NodeGeometryExecFunction = void (*)(blender::nodes::GeoNodeExecParams params); | ||||
| using NodeDeclareFunction = void (*)(blender::nodes::NodeDeclarationBuilder &builder); | using NodeDeclareFunction = void (*)(blender::nodes::NodeDeclarationBuilder &builder); | ||||
| using NodeInternalLinkFunction = | |||||
| void (*)(blender::nodes::internal_link::NodeInternalLinkBuilder &linker); | |||||
| using NodeDeclareDynamicFunction = void (*)(const bNodeTree &tree, | using NodeDeclareDynamicFunction = void (*)(const bNodeTree &tree, | ||||
| const bNode &node, | const bNode &node, | ||||
| blender::nodes::NodeDeclaration &r_declaration); | blender::nodes::NodeDeclaration &r_declaration); | ||||
| using SocketGetCPPValueFunction = void (*)(const struct bNodeSocket &socket, void *r_value); | using SocketGetCPPValueFunction = void (*)(const struct bNodeSocket &socket, void *r_value); | ||||
| using SocketGetGeometryNodesCPPValueFunction = void (*)(const struct bNodeSocket &socket, | using SocketGetGeometryNodesCPPValueFunction = void (*)(const struct bNodeSocket &socket, | ||||
| void *r_value); | void *r_value); | ||||
| /* Adds socket link operations that are specific to this node type. */ | /* Adds socket link operations that are specific to this node type. */ | ||||
| using NodeGatherSocketLinkOperationsFunction = | using NodeGatherSocketLinkOperationsFunction = | ||||
| void (*)(blender::nodes::GatherLinkSearchOpParams ¶ms); | void (*)(blender::nodes::GatherLinkSearchOpParams ¶ms); | ||||
| using NodeGetCompositorOperationFunction = blender::realtime_compositor::NodeOperation | using NodeGetCompositorOperationFunction = blender::realtime_compositor::NodeOperation | ||||
| *(*)(blender::realtime_compositor::Context &context, blender::nodes::DNode node); | *(*)(blender::realtime_compositor::Context &context, blender::nodes::DNode node); | ||||
| using NodeGetCompositorShaderNodeFunction = | using NodeGetCompositorShaderNodeFunction = | ||||
| blender::realtime_compositor::ShaderNode *(*)(blender::nodes::DNode node); | blender::realtime_compositor::ShaderNode *(*)(blender::nodes::DNode node); | ||||
| #else | #else | ||||
| typedef void *NodeGetCompositorOperationFunction; | typedef void *NodeGetCompositorOperationFunction; | ||||
| typedef void *NodeGetCompositorShaderNodeFunction; | typedef void *NodeGetCompositorShaderNodeFunction; | ||||
| typedef void *NodeMultiFunctionBuildFunction; | typedef void *NodeMultiFunctionBuildFunction; | ||||
| typedef void *NodeGeometryExecFunction; | typedef void *NodeGeometryExecFunction; | ||||
| typedef void *NodeDeclareFunction; | typedef void *NodeDeclareFunction; | ||||
| typedef void *NodeInternalLinkFunction; | |||||
| typedef void *NodeDeclareDynamicFunction; | typedef void *NodeDeclareDynamicFunction; | ||||
| typedef void *NodeGatherSocketLinkOperationsFunction; | typedef void *NodeGatherSocketLinkOperationsFunction; | ||||
| typedef void *SocketGetCPPTypeFunction; | typedef void *SocketGetCPPTypeFunction; | ||||
| typedef void *SocketGetGeometryNodesCPPTypeFunction; | typedef void *SocketGetGeometryNodesCPPTypeFunction; | ||||
| typedef void *SocketGetGeometryNodesCPPValueFunction; | typedef void *SocketGetGeometryNodesCPPValueFunction; | ||||
| typedef void *SocketGetCPPValueFunction; | typedef void *SocketGetCPPValueFunction; | ||||
| typedef struct CPPTypeHandle CPPTypeHandle; | typedef struct CPPTypeHandle CPPTypeHandle; | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | typedef struct bNodeType { | ||||
| */ | */ | ||||
| bool (*poll_instance)(const struct bNode *node, | bool (*poll_instance)(const struct bNode *node, | ||||
| const struct bNodeTree *nodetree, | const struct bNodeTree *nodetree, | ||||
| const char **r_disabled_hint); | const char **r_disabled_hint); | ||||
| /* Optional handling of link insertion. Returns false if the link shouldn't be created. */ | /* Optional handling of link insertion. Returns false if the link shouldn't be created. */ | ||||
| bool (*insert_link)(struct bNodeTree *ntree, struct bNode *node, struct bNodeLink *link); | bool (*insert_link)(struct bNodeTree *ntree, struct bNode *node, struct bNodeLink *link); | ||||
| NodeInternalLinkFunction internal_link_function; | |||||
| void (*free_self)(struct bNodeType *ntype); | void (*free_self)(struct bNodeType *ntype); | ||||
| /* **** execution callbacks **** */ | /* **** execution callbacks **** */ | ||||
| NodeInitExecFunction init_exec_fn; | NodeInitExecFunction init_exec_fn; | ||||
| NodeFreeExecFunction free_exec_fn; | NodeFreeExecFunction free_exec_fn; | ||||
| NodeExecFunction exec_fn; | NodeExecFunction exec_fn; | ||||
| /* gpu */ | /* gpu */ | ||||
| NodeGPUExecFunction gpu_fn; | NodeGPUExecFunction gpu_fn; | ||||
| ▲ Show 20 Lines • Show All 1,286 Lines • Show Last 20 Lines | |||||