|
Blender
V2.93
|
#include "DNA_node_types.h"#include "BLI_utildefines.h"#include "BKE_node.h"#include "NOD_common.h"#include "node_common.h"#include "node_exec.h"#include "node_shader_util.h"#include "RNA_access.h"Go to the source code of this file.
Functions | |
| static void | copy_stack (bNodeStack *to, bNodeStack *from) |
| static void | move_stack (bNodeStack *to, bNodeStack *from) |
| static void * | group_initexec (bNodeExecContext *context, bNode *node, bNodeInstanceKey key) |
| static void | group_freeexec (void *nodedata) |
| static void | group_copy_inputs (bNode *gnode, bNodeStack **in, bNodeStack *gstack) |
| static void | group_move_outputs (bNode *gnode, bNodeStack **out, bNodeStack *gstack) |
| static void | group_execute (void *data, int thread, struct bNode *node, bNodeExecData *execdata, struct bNodeStack **in, struct bNodeStack **out) |
| static void | group_gpu_copy_inputs (bNode *gnode, GPUNodeStack *in, bNodeStack *gstack) |
| static void | group_gpu_move_outputs (bNode *gnode, GPUNodeStack *out, bNodeStack *gstack) |
| static int | gpu_group_execute (GPUMaterial *mat, bNode *node, bNodeExecData *execdata, GPUNodeStack *in, GPUNodeStack *out) |
| void | register_node_type_sh_group (void) |
| void | register_node_type_sh_custom_group (bNodeType *ntype) |
|
static |
Definition at line 38 of file node_shader_common.c.
References copy_v4_v4(), bNodeStack::data, bNodeStack::datatype, from, bNodeStack::is_copy, and bNodeStack::vec.
Referenced by group_copy_inputs().
|
static |
Definition at line 212 of file node_shader_common.c.
References bNodeExecData::data, exec(), group_gpu_copy_inputs(), group_gpu_move_outputs(), node, ntreeExecGPUNodes(), and NULL.
Referenced by register_node_type_sh_custom_group(), and register_node_type_sh_group().
|
static |
Definition at line 91 of file node_shader_common.c.
References Freestyle::a, copy_stack(), ListBase::first, bNode::id, node, node_get_socket_stack(), NODE_GROUP_INPUT, and bNodeTree::nodes.
Referenced by group_execute().
|
static |
Definition at line 134 of file node_shader_common.c.
References data, bNodeExecData::data, exec(), group_copy_inputs(), group_move_outputs(), bNode::need_exec, bNode::next, node, ntreeExecThreadNodes(), ntreeGetThreadStack(), ntreeReleaseThreadStack(), and bNodeThreadStack::stack.
Referenced by register_node_type_sh_custom_group(), and register_node_type_sh_group().
|
static |
Definition at line 80 of file node_shader_common.c.
References ntreeShaderEndExecTree_internal().
Referenced by register_node_type_sh_custom_group(), and register_node_type_sh_group().
|
static |
Definition at line 167 of file node_shader_common.c.
References Freestyle::a, ListBase::first, bNode::id, node, node_data_from_gpu_stack(), node_get_socket_stack(), NODE_GROUP_INPUT, and bNodeTree::nodes.
Referenced by gpu_group_execute().
|
static |
Definition at line 190 of file node_shader_common.c.
References Freestyle::a, ListBase::first, bNode::id, node, NODE_DO_OUTPUT, node_get_socket_stack(), node_gpu_stack_from_data(), NODE_GROUP_OUTPUT, bNodeTree::nodes, and GPUNodeStack::type.
Referenced by gpu_group_execute().
|
static |
Definition at line 65 of file node_shader_common.c.
References context, exec(), if(), node, ntreeShaderBeginExecTree_internal(), and NULL.
Referenced by register_node_type_sh_custom_group(), and register_node_type_sh_group().
|
static |
Definition at line 113 of file node_shader_common.c.
References Freestyle::a, ListBase::first, bNode::id, move_stack(), node, NODE_DO_OUTPUT, node_get_socket_stack(), NODE_GROUP_OUTPUT, and bNodeTree::nodes.
Referenced by group_execute().
|
static |
Definition at line 50 of file node_shader_common.c.
References copy_v4_v4(), bNodeStack::data, bNodeStack::datatype, from, bNodeStack::is_copy, NULL, and bNodeStack::vec.
Referenced by group_move_outputs().
| void register_node_type_sh_custom_group | ( | bNodeType * | ntype | ) |
Definition at line 255 of file node_shader_common.c.
References gpu_group_execute(), group_execute(), group_freeexec(), group_initexec(), bNodeType::insert_link, node_insert_link_default(), node_type_exec(), node_type_gpu(), node_update_internal_links_default(), NULL, bNodeType::poll, sh_node_poll_default(), and bNodeType::update_internal_links.
| void register_node_type_sh_group | ( | void | ) |
Definition at line 228 of file node_shader_common.c.
References BLI_assert, gpu_group_execute(), group_execute(), group_freeexec(), group_initexec(), bNodeType::insert_link, NODE_CLASS_GROUP, NODE_CONST_OUTPUT, NODE_GROUP, node_group_label(), node_group_poll_instance(), node_group_update(), node_insert_link_default(), node_type_base_custom(), node_type_exec(), node_type_gpu(), node_type_group_update(), node_type_label(), node_type_size(), node_type_socket_templates(), node_update_internal_links_default(), nodeRegisterType(), NULL, bNodeType::poll, bNodeType::poll_instance, bNodeType::rna_ext, RNA_struct_blender_type_set(), RNA_struct_find(), sh_node_poll_default(), ExtensionRNA::srna, bNodeType::type, and bNodeType::update_internal_links.
Referenced by registerShaderNodes().