|
Blender
V3.3
|
#include <string.h>#include "DNA_node_types.h"#include "DNA_space_types.h"#include "DNA_texture_types.h"#include "BLI_listbase.h"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_context.h"#include "BKE_linestyle.h"#include "BKE_node.h"#include "BKE_paint.h"#include "NOD_texture.h"#include "node_common.h"#include "node_exec.h"#include "node_texture_util.h"#include "node_util.h"#include "DEG_depsgraph.h"#include "RNA_access.h"#include "RNA_prototypes.h"#include "RE_texture.h"#include "UI_resources.h"Go to the source code of this file.
Variables | |
| bNodeTreeType * | ntreeType_Texture |
|
static |
Definition at line 84 of file node_texture_tree.c.
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 102 of file node_texture_tree.c.
References ListBase::first, node, NODE_MUTED, NODE_REROUTE, nodeInternalRelink(), bNodeTree::nodes, and ntreeFreeLocalNode().
Referenced by register_node_tree_type_tex().
| bool ntreeExecThreadNodes | ( | bNodeTreeExec * | exec, |
| bNodeThreadStack * | nts, | ||
| void * | callerdata, | ||
| int | thread | ||
| ) |
Definition at line 187 of file node_texture_tree.c.
References bNodeExec::data, exec(), MAX_SOCKET, node, bNodeExec::node, node_get_stack(), NODE_MUTED, NULL, and bNodeThreadStack::stack.
Referenced by group_execute(), and ntreeTexExecTree().
| bNodeThreadStack* ntreeGetThreadStack | ( | bNodeTreeExec * | exec, |
| int | thread | ||
| ) |
Definition at line 160 of file node_texture_tree.c.
References BLI_addtail(), exec(), ListBase::first, MEM_callocN, MEM_dupallocN, bNodeThreadStack::next, bNodeThreadStack::stack, and bNodeThreadStack::used.
Referenced by group_execute(), and ntreeTexExecTree().
| void ntreeReleaseThreadStack | ( | bNodeThreadStack * | nts | ) |
Definition at line 182 of file node_texture_tree.c.
References bNodeThreadStack::used.
Referenced by group_execute(), and ntreeTexExecTree().
| bNodeTreeExec* ntreeTexBeginExecTree | ( | bNodeTree * | ntree | ) |
Definition at line 235 of file node_texture_tree.c.
References blender::compositor::context, exec(), bNodeTree::execdata, NODE_INSTANCE_KEY_BASE, ntree, ntreeTexBeginExecTree_internal(), and bNodeTree::previews.
Referenced by blender::compositor::TextureBaseOperation::init_execution(), load_tex(), ntreeTexExecTree(), paint_brush_init_tex(), and sculpt_brush_init_tex().
| bNodeTreeExec* ntreeTexBeginExecTree_internal | ( | bNodeExecContext * | context, |
| bNodeTree * | ntree, | ||
| bNodeInstanceKey | parent_key | ||
| ) |
Definition at line 215 of file node_texture_tree.c.
References BLENDER_MAX_THREADS, blender::compositor::context, exec(), MEM_callocN, node, ntree, and ntree_exec_begin().
Referenced by group_initexec(), and ntreeTexBeginExecTree().
| void ntreeTexEndExecTree | ( | bNodeTreeExec * | exec | ) |
Definition at line 301 of file node_texture_tree.c.
References exec(), bNodeTree::execdata, ntree, ntreeTexEndExecTree_internal(), and NULL.
Referenced by blender::compositor::TextureBaseOperation::deinit_execution(), load_tex(), node_free_node(), ntree_free_data(), paint_brush_exit_tex(), sculpt_brush_exit_tex(), and texture_copy_data().
| void ntreeTexEndExecTree_internal | ( | bNodeTreeExec * | exec | ) |
Definition at line 277 of file node_texture_tree.c.
References Freestyle::a, BLENDER_MAX_THREADS, BLI_freelistN(), exec(), MEM_freeN, bNodeThreadStack::next, ntree_exec_end(), NULL, bNodeThreadStack::stack, 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 * | UNUSEDtex, | ||
| short | which_output, | ||
| int | cfra, | ||
| int | preview, | ||
| MTex * | mtex | ||
| ) |
Definition at line 313 of file node_texture_tree.c.
References BLI_thread_lock(), BLI_thread_unlock(), data, exec(), bNodeTree::execdata, LOCK_NODES, Brush::mtex, ntree, ntreeExecThreadNodes(), ntreeGetThreadStack(), ntreeReleaseThreadStack(), ntreeTexBeginExecTree(), NULL, usdtokens::preview(), TEX_INT, and TEX_RGB.
Definition at line 136 of file node_texture_tree.c.
References foreach_nodeclass(), bNodeTreeType::foreach_nodeclass, bNodeTreeType::get_from_context, bNodeTreeType::idname, localize(), bNodeTreeType::localize, MEM_callocN, N_, NTREE_TEXTURE, ntreeType_Texture, ntreeTypeAdd(), bNodeTreeType::rna_ext, ExtensionRNA::srna, texture_get_from_context(), texture_node_tree_socket_type_valid(), bNodeTreeType::type, bNodeTreeType::ui_description, bNodeTreeType::ui_icon, bNodeTreeType::ui_name, update(), bNodeTreeType::update, and bNodeTreeType::valid_socket_type.
Referenced by BKE_node_system_init().
|
static |
Definition at line 260 of file node_texture_tree.c.
References Freestyle::a, BLENDER_MAX_THREADS, bNodeStack::data, exec(), bNodeStack::is_copy, MEM_freeN, bNodeThreadStack::next, and bNodeThreadStack::stack.
Referenced by ntreeTexEndExecTree_internal().
|
static |
Definition at line 40 of file node_texture_tree.c.
References BKE_linestyle_active_from_view_layer(), BKE_paint_brush(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_node(), give_current_brush_texture(), give_current_linestyle_texture(), Tex::id, ToolSettings::imapaint, linestyle, Object::mode, Tex::nodetree, NULL, OB_MODE_SCULPT, OBACT, ImagePaintSettings::paint, Sculpt::paint, scene, ToolSettings::sculpt, SNODE_TEX_BRUSH, SNODE_TEX_LINESTYLE, SpaceNode::texfrom, and Scene::toolsettings.
Referenced by register_node_tree_type_tex().
|
static |
Definition at line 127 of file node_texture_tree.c.
References ELEM, nodeIsStaticSocketType(), SOCK_FLOAT, SOCK_RGBA, SOCK_VECTOR, and bNodeSocketType::type.
Referenced by register_node_tree_type_tex().
Definition at line 122 of file node_texture_tree.c.
References ntree, and ntree_update_reroute_nodes().
Referenced by register_node_tree_type_tex().
| bNodeTreeType* ntreeType_Texture |
Definition at line 134 of file node_texture_tree.c.
Referenced by ED_node_is_texture(), ED_node_texture_default(), and register_node_tree_type_tex().