44 static auto function = mf::build::SI1_SO3<float3, float, float, float>(
51 mf::build::exec_presets::AllSpanOrSingle());
65 ntype.
ui_description =
"Split a vector into its individual components";
68 ntype.
declare = file_ns::cmp_node_separate_xyz_declare;
69 ntype.
gpu_fn = file_ns::node_gpu_material;
102 static auto function = mf::build::SI3_SO<float, float, float, float3>(
104 [](
const float x,
const float y,
const float z) ->
float3 {
return float3(
x,
y,
z); },
105 mf::build::exec_presets::Materialized());
119 ntype.
ui_description =
"Combine a vector from its individual components";
122 ntype.
declare = file_ns::cmp_node_combine_xyz_declare;
123 ntype.
gpu_fn = file_ns::node_gpu_material;
#define NODE_CLASS_CONVERTER
#define CMP_NODE_COMBINE_XYZ
#define CMP_NODE_SEPARATE_XYZ
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
void set_matching_fn(const mf::MultiFunction *fn)
VecBase< float, 3 > float3
void node_register_type(bNodeType &ntype)
static int node_gpu_material(GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &builder)
static void cmp_node_combine_xyz_declare(NodeDeclarationBuilder &b)
static int node_gpu_material(GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &builder)
static void cmp_node_separate_xyz_declare(NodeDeclarationBuilder &b)
VecBase< float, 3 > float3
static void register_node_type_cmp_separate_xyz()
static void register_node_type_cmp_combine_xyz()
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
static blender::bke::bNodeSocketTemplate outputs[]
static blender::bke::bNodeSocketTemplate inputs[]
std::string ui_description
NodeGPUExecFunction gpu_fn
NodeMultiFunctionBuildFunction build_multi_function
const char * enum_name_legacy
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare