static void data_from_gpu_stack_list(ListBase *sockets, bNodeStack **ns, GPUNodeStack *gs) { bNodeSocket *sock; int i; for (sock = sockets->first, i = 0; sock; sock = sock->next, i++) node_data_from_gpu_stack(ns[i], &gs[i]); }
static void group_gpu_copy_inputs(bNode *node, GPUNodeStack *in, bNodeStack *gstack) { bNodeSocket *sock; bNodeStack *ns; int a; for (sock=node->inputs.first, a=0; sock; sock=sock->next, ++a) { if (sock->groupsock) { ns = node_get_socket_stack(gstack, sock->groupsock); /* convert the external gpu stack back to internal node stack data */ node_data_from_gpu_stack(ns, &in[a]); } } }
static void group_gpu_copy_inputs(bNode *gnode, GPUNodeStack *in, bNodeStack *gstack) { bNodeTree *ngroup = (bNodeTree *)gnode->id; bNode *node; bNodeSocket *sock; bNodeStack *ns; int a; for (node = ngroup->nodes.first; node; node = node->next) { if (node->type == NODE_GROUP_INPUT) { for (sock = node->outputs.first, a = 0; sock; sock = sock->next, ++a) { ns = node_get_socket_stack(gstack, sock); if (ns) { /* convert the external gpu stack back to internal node stack data */ node_data_from_gpu_stack(ns, &in[a]); } } } } }