28 bNodeTree *ngroup = id_cast<bNodeTree *>(gnode->
id);
31 if (
node->is_group_input()) {
33 for (
const auto [a, sock] :
node->outputs.enumerate()) {
50 ngroup.ensure_topology_cache();
51 bNode *group_output_node = ngroup.group_output_node();
52 if (!group_output_node) {
56 for (
const auto [a, sock] : group_output_node->
inputs.enumerate()) {
111 if (ntype->
poll ==
nullptr) {
void node_register_type(bNodeType &ntype)
void node_type_base_custom(bNodeType &ntype, StringRefNull idname, StringRefNull name, StringRefNull enum_name, short nclass)
void node_group_declare(NodeDeclarationBuilder &b)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void node_gpu_stack_from_data(GPUNodeStack *gs, bNodeSocket *socket, bNodeStack *ns)
int node_group_ui_class(const bNode *node)
bool sh_node_poll_default(const bke::bNodeType *, const bNodeTree *ntree, const char **r_disabled_hint)
std::string node_group_ui_description(const bNode &node)
void node_group_label(const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
static void group_gpu_copy_inputs(bNode *gnode, GPUNodeStack *in, bNodeStack *gstack)
StructRNA * RNA_struct_find(const char *identifier)
void node_data_from_gpu_stack(bNodeStack *ns, GPUNodeStack *gs)
bNodeStack * node_get_socket_stack(bNodeStack *stack, bNodeSocket *sock)
bool node_insert_link_default(bke::NodeInsertLinkParams &)
void register_node_type_sh_custom_group(bke::bNodeType *ntype)
static void group_gpu_move_outputs(bNode *gnode, GPUNodeStack *out, bNodeStack *gstack)
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type)
static int gpu_group_execute(GPUMaterial *mat, bNode *node, bNodeExecData *execdata, GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_group()
void ntreeExecGPUNodes(bNodeTreeExec *exec, GPUMaterial *mat, bNode *output_node, const int *depth_level)
bool node_group_poll_instance(const bNode *node, const bNodeTree *nodetree, const char **r_disabled_hint)
ListBaseT< bNodeSocket > inputs
static constexpr int GroupMin
void(*) labelfunc(const bNodeTree *ntree, const bNode *node, char *label, int label_maxncpy)
bool(*) poll(const bNodeType *ntype, const bNodeTree *nodetree, const char **r_disabled_hint)
NodeGPUExecFunction gpu_fn
std::string(*) ui_description_fn(const bNode &node)
const char * enum_name_legacy
NodeDeclareFunction declare
int(*) ui_class(const bNode *node)
bool(*) insert_link(NodeInsertLinkParams ¶ms)
bool(*) poll_instance(const bNode *node, const bNodeTree *nodetree, const char **r_disabled_hint)