static int gpu_group_execute(GPUMaterial *mat, bNode *node, void *nodedata, GPUNodeStack *in, GPUNodeStack *out)
{
	bNodeTreeExec *exec= (bNodeTreeExec*)nodedata;
	
	group_gpu_copy_inputs(node, in, exec->stack);
	ntreeExecGPUNodes(exec, mat, (node->flag & NODE_GROUP_EDIT));
	group_gpu_move_outputs(node, out, exec->stack);
	
	return 1;
}
Beispiel #2
0
static int gpu_group_execute(GPUMaterial *mat, bNode *node, bNodeExecData *execdata, GPUNodeStack *in, GPUNodeStack *out)
{
	bNodeTreeExec *exec = execdata->data;
	
	group_gpu_copy_inputs(node, in, exec->stack);
	#if 0	/* XXX NODE_GROUP_EDIT is deprecated, depends on node space */
	ntreeExecGPUNodes(exec, mat, (node->flag & NODE_GROUP_EDIT));
	#else
	ntreeExecGPUNodes(exec, mat, 0);
	#endif
	group_gpu_move_outputs(node, out, exec->stack);
	
	return 1;
}