|
Blender V4.3
|
#include <cstring>#include "DNA_node_types.h"#include "DNA_space_types.h"#include "DNA_texture_types.h"#include "BLI_listbase.h"#include "BLI_string.h"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_layer.hh"#include "BKE_linestyle.h"#include "BKE_node.hh"#include "BKE_node_runtime.hh"#include "BKE_paint.hh"#include "BKE_texture.h"#include "NOD_texture.h"#include "node_common.h"#include "node_exec.hh"#include "node_texture_util.hh"#include "node_util.hh"#include "RNA_prototypes.hh"#include "UI_resources.hh"Go to the source code of this file.
Variables | |
| blender::bke::bNodeTreeType * | ntreeType_Texture |
|
static |
Definition at line 83 of file node_texture_tree.cc.
References N_, NODE_CLASS_CONVERTER, NODE_CLASS_DISTORT, NODE_CLASS_GROUP, NODE_CLASS_INPUT, NODE_CLASS_INTERFACE, NODE_CLASS_LAYOUT, NODE_CLASS_OP_COLOR, NODE_CLASS_OUTPUT, NODE_CLASS_PATTERN, and NODE_CLASS_TEXTURE.
Referenced by register_node_tree_type_tex().
Definition at line 101 of file node_texture_tree.cc.
References ListBase::first, bNode::next, node, blender::bke::node_internal_relink(), NODE_MUTED, NODE_REROUTE, blender::bke::node_tree_free_local_node(), and bNodeTree::nodes.
Referenced by register_node_tree_type_tex().
| bool ntreeExecThreadNodes | ( | bNodeTreeExec * | exec, |
| bNodeThreadStack * | nts, | ||
| void * | callerdata, | ||
| int | thread ) |
Definition at line 185 of file node_texture_tree.cc.
References bNodeExec::data, exec(), MAX_SOCKET, bNodeExec::node, node, node_get_stack(), NODE_MUTED, and bNodeThreadStack::stack.
Referenced by group_execute(), and ntreeTexExecTree().
| bNodeThreadStack * ntreeGetThreadStack | ( | bNodeTreeExec * | exec, |
| int | thread ) |
Definition at line 158 of file node_texture_tree.cc.
References BLI_addtail(), exec(), ListBase::first, MEM_dupallocN, bNodeThreadStack::next, bNodeThreadStack::stack, and bNodeThreadStack::used.
Referenced by group_execute(), and ntreeTexExecTree().
| void ntreeReleaseThreadStack | ( | bNodeThreadStack * | nts | ) |
Definition at line 180 of file node_texture_tree.cc.
References bNodeThreadStack::used.
Referenced by group_execute(), and ntreeTexExecTree().
| bNodeTreeExec * ntreeTexBeginExecTree | ( | bNodeTree * | ntree | ) |
Definition at line 232 of file node_texture_tree.cc.
References exec(), blender::bke::NODE_INSTANCE_KEY_BASE, ntreeTexBeginExecTree_internal(), bNodeTree::previews, and bNodeTree::runtime.
Referenced by brush_init_tex(), blender::compositor::TextureBaseOperation::init_execution(), blender::ed::sculpt_paint::load_tex(), ntreeTexExecTree(), and paint_brush_init_tex().
| bNodeTreeExec * ntreeTexBeginExecTree_internal | ( | bNodeExecContext * | context, |
| bNodeTree * | ntree, | ||
| bNodeInstanceKey | parent_key ) |
Definition at line 213 of file node_texture_tree.cc.
References BLENDER_MAX_THREADS, exec(), LISTBASE_FOREACH, and ntree_exec_begin().
Referenced by group_initexec(), and ntreeTexBeginExecTree().
| void ntreeTexEndExecTree | ( | bNodeTreeExec * | exec | ) |
Definition at line 296 of file node_texture_tree.cc.
References exec(), ntreeTexEndExecTree_internal(), and bNodeTree::runtime.
Referenced by blender::ed::sculpt_paint::brush_exit_tex(), blender::compositor::TextureBaseOperation::deinit_execution(), blender::ed::sculpt_paint::load_tex(), blender::bke::node_free_node(), blender::bke::ntree_free_data(), paint_brush_exit_tex(), and texture_copy_data().
| void ntreeTexEndExecTree_internal | ( | bNodeTreeExec * | exec | ) |
Definition at line 273 of file node_texture_tree.cc.
References BLENDER_MAX_THREADS, BLI_freelistN(), exec(), LISTBASE_FOREACH, MEM_freeN(), ntree_exec_end(), and tex_free_delegates().
Referenced by group_freeexec(), and ntreeTexEndExecTree().
| int ntreeTexExecTree | ( | bNodeTree * | ntree, |
| TexResult * | target, | ||
| const float | co[3], | ||
| float | dxt[3], | ||
| float | dyt[3], | ||
| int | osatex, | ||
| const short | thread, | ||
| const Tex * | , | ||
| short | which_output, | ||
| int | cfra, | ||
| int | preview, | ||
| MTex * | mtex ) |
Definition at line 309 of file node_texture_tree.cc.
References BLI_thread_lock(), BLI_thread_unlock(), data, exec(), LOCK_NODES, ntreeExecThreadNodes(), ntreeGetThreadStack(), ntreeReleaseThreadStack(), ntreeTexBeginExecTree(), bNodeTree::runtime, TEX_INT, and TEX_RGB.
| void register_node_tree_type_tex | ( | ) |
Definition at line 133 of file node_texture_tree.cc.
References blender::bke::bNodeTreeType::foreach_nodeclass, foreach_nodeclass(), blender::bke::bNodeTreeType::get_from_context, blender::bke::bNodeTreeType::group_idname, blender::bke::bNodeTreeType::idname, blender::bke::bNodeTreeType::localize, localize(), N_, blender::bke::node_tree_type_add(), NTREE_TEXTURE, ntreeType_Texture, blender::bke::bNodeTreeType::rna_ext, ExtensionRNA::srna, STRNCPY, texture_get_from_context(), texture_node_tree_socket_type_valid(), blender::bke::bNodeTreeType::type, blender::bke::bNodeTreeType::ui_description, blender::bke::bNodeTreeType::ui_icon, blender::bke::bNodeTreeType::ui_name, blender::bke::bNodeTreeType::update, update(), and blender::bke::bNodeTreeType::valid_socket_type.
Referenced by register_texture_nodes().
|
static |
Definition at line 257 of file node_texture_tree.cc.
References BLENDER_MAX_THREADS, bNodeStack::data, exec(), bNodeStack::is_copy, LISTBASE_FOREACH, and MEM_freeN().
Referenced by ntreeTexEndExecTree_internal().
|
static |
Definition at line 38 of file node_texture_tree.cc.
References BKE_linestyle_active_from_view_layer(), BKE_paint_brush(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_node(), give_current_brush_texture(), give_current_linestyle_texture(), Tex::id, linestyle, Object::mode, Tex::nodetree, OB_MODE_SCULPT, SNODE_TEX_BRUSH, SNODE_TEX_LINESTYLE, and SpaceNode::texfrom.
Referenced by register_node_tree_type_tex().
|
static |
Definition at line 124 of file node_texture_tree.cc.
References ELEM, blender::bke::node_is_static_socket_type(), SOCK_FLOAT, SOCK_RGBA, SOCK_VECTOR, and blender::bke::bNodeSocketType::type.
Referenced by register_node_tree_type_tex().
|
static |
Definition at line 119 of file node_texture_tree.cc.
References ntree_update_reroute_nodes().
Referenced by register_node_tree_type_tex().
| blender::bke::bNodeTreeType* ntreeType_Texture |
Definition at line 131 of file node_texture_tree.cc.
Referenced by ED_node_is_texture(), ED_node_texture_default(), blender::ed::space_node::node_group_idname(), and register_node_tree_type_tex().