|
Blender V4.3
|
#include "BKE_node.hh"Go to the source code of this file.
Functions | |
| void | register_node_type_sh_custom_group (blender::bke::bNodeType *ntype) |
| struct bNodeTreeExec * | ntreeShaderBeginExecTree (struct bNodeTree *ntree) |
| void | ntreeShaderEndExecTree (struct bNodeTreeExec *exec) |
| struct bNode * | ntreeShaderOutputNode (struct bNodeTree *ntree, int target) |
| void | ntreeGPUMaterialNodes (struct bNodeTree *localtree, struct GPUMaterial *mat) |
Variables | |
| struct blender::bke::bNodeTreeType * | ntreeType_Shader |
| void ntreeGPUMaterialNodes | ( | struct bNodeTree * | localtree, |
| struct GPUMaterial * | mat ) |
This one needs to work on a local tree.
Definition at line 180 of file gpu_shader_builder_stubs.cc.
References BLI_assert_unreachable, exec(), iter_shader_to_rgba_depth_count(), LISTBASE_FOREACH, bNodeTree::nodes, ntree_shader_groups_expand_inputs(), ntree_shader_groups_flatten(), ntree_shader_groups_remove_muted_links(), ntree_shader_implicit_closure_cast(), ntree_shader_pruned_unused(), ntree_shader_shader_to_rgba_branches(), ntree_shader_weight_tree_invert(), ntreeExecGPUNodes(), ntreeShaderBeginExecTree(), ntreeShaderEndExecTree(), ntreeShaderOutputNode(), SH_NODE_OUTPUT_AOV, and SHD_OUTPUT_EEVEE.
| struct bNodeTreeExec * ntreeShaderBeginExecTree | ( | struct bNodeTree * | ntree | ) |
Definition at line 1274 of file node_shader_tree.cc.
References exec(), blender::bke::NODE_INSTANCE_KEY_BASE, ntreeShaderBeginExecTree_internal(), bNodeTree::previews, and bNodeTree::runtime.
Referenced by ntreeGPUMaterialNodes().
| void ntreeShaderEndExecTree | ( | struct bNodeTreeExec * | exec | ) |
Definition at line 1317 of file node_shader_tree.cc.
References exec(), ntreeShaderEndExecTree_internal(), and bNodeTree::runtime.
Referenced by blender::bke::ntree_free_data(), and ntreeGPUMaterialNodes().
Find an output node of the shader tree.
Definition at line 204 of file node_shader_tree.cc.
References bNode::custom1, ELEM, bNode::flag, LISTBASE_FOREACH, node, NODE_DO_OUTPUT, blender::bke::node_tree_set_output(), bNodeTree::nodes, SH_NODE_OUTPUT_LIGHT, SH_NODE_OUTPUT_MATERIAL, SH_NODE_OUTPUT_WORLD, and SHD_OUTPUT_ALL.
Referenced by blender::nodes::materialx::export_to_materialx(), blender::io::hydra::WorldData::init(), light_emission_node_to_energy(), and ntreeGPUMaterialNodes().
| void register_node_type_sh_custom_group | ( | blender::bke::bNodeType * | ntype | ) |
Definition at line 109 of file node_shader_common.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::gpu_fn, gpu_group_execute(), blender::bke::bNodeType::insert_link, blender::nodes::node_group_declare(), node_insert_link_default(), blender::bke::bNodeType::poll, and sh_node_poll_default().
|
extern |
Definition at line 175 of file node_shader_tree.cc.
Referenced by blender::io::obj::create_mtl_node_tree(), default_paint_slot_color_get(), blender::eevee::DefaultSurfaceNodeTree::DefaultSurfaceNodeTree(), blender::eevee::DefaultWorldNodeTree::DefaultWorldNodeTree(), ED_node_is_shader(), ED_node_shader_default(), blender::eevee::LookdevWorld::LookdevWorld(), material_default_holdout_init(), material_default_surface_init(), material_default_volume_init(), blender::eevee::MaterialModule::MaterialModule(), blender::ed::space_node::node_group_idname(), and register_node_tree_type_sh().