Blender V4.3
node_exec.cc File Reference
#include "DNA_node_types.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_global.hh"
#include "BKE_node_runtime.hh"
#include "BKE_node_tree_update.hh"
#include "MEM_guardedalloc.h"
#include "node_exec.hh"
#include "node_util.hh"

Go to the source code of this file.

Functions

static int node_exec_socket_use_stack (bNodeSocket *sock)
 
bNodeStacknode_get_socket_stack (bNodeStack *stack, bNodeSocket *sock)
 
void node_get_stack (bNode *node, bNodeStack *stack, bNodeStack **in, bNodeStack **out)
 
static void node_init_input_index (bNodeSocket *sock, int *index)
 
static void node_init_output_index_muted (bNodeSocket *sock, int *index, const blender::MutableSpan< bNodeLink > internal_links)
 
static void node_init_output_index (bNodeSocket *sock, int *index)
 
static bNodeStacksetup_stack (bNodeStack *stack, bNodeTree *ntree, bNode *node, bNodeSocket *sock)
 
bNodeTreeExecntree_exec_begin (bNodeExecContext *context, bNodeTree *ntree, bNodeInstanceKey parent_key)
 
void ntree_exec_end (bNodeTreeExec *exec)
 

Function Documentation

◆ node_exec_socket_use_stack()

static int node_exec_socket_use_stack ( bNodeSocket * sock)
static

◆ node_get_socket_stack()

bNodeStack * node_get_socket_stack ( bNodeStack * stack,
bNodeSocket * sock )

For a given socket, find the actual stack entry.

Definition at line 29 of file node_exec.cc.

References bNodeSocket::stack_index.

Referenced by group_copy_inputs(), group_copy_outputs(), group_gpu_copy_inputs(), group_gpu_move_outputs(), node_get_stack(), and setup_stack().

◆ node_get_stack()

void node_get_stack ( bNode * node,
bNodeStack * stack,
bNodeStack ** in,
bNodeStack ** out )

Definition at line 37 of file node_exec.cc.

References LISTBASE_FOREACH, and node_get_socket_stack().

Referenced by ntreeExecGPUNodes(), and ntreeExecThreadNodes().

◆ node_init_input_index()

static void node_init_input_index ( bNodeSocket * sock,
int * index )
static

◆ node_init_output_index()

static void node_init_output_index ( bNodeSocket * sock,
int * index )
static

Definition at line 99 of file node_exec.cc.

References node_exec_socket_use_stack(), and bNodeSocket::stack_index.

Referenced by ntree_exec_begin().

◆ node_init_output_index_muted()

static void node_init_output_index_muted ( bNodeSocket * sock,
int * index,
const blender::MutableSpan< bNodeLink > internal_links )
static

Definition at line 71 of file node_exec.cc.

References bNodeSocket::link, node_exec_socket_use_stack(), and bNodeSocket::stack_index.

Referenced by ntree_exec_begin().

◆ ntree_exec_begin()

◆ ntree_exec_end()

◆ setup_stack()