26 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
27 .compositor_domain_priority(0);
47 static auto function = mf::build::SI1_SO4<float4, float, float, float, float>(
48 "Separate Color RGBA",
49 [](
const float4 &
color,
float &r,
float &g,
float &
b,
float &a) ->
void {
55 mf::build::exec_presets::AllSpanOrSingle());
68 ntype.
ui_name =
"Separate RGBA (Legacy)";
72 ntype.
declare = file_ns::cmp_node_seprgba_declare;
74 ntype.
gpu_fn = file_ns::node_gpu_material;
124 static auto function = mf::build::SI4_SO<float, float, float, float, float4>(
125 "Combine Color RGBA",
126 [](
const float r,
const float g,
const float b,
const float a) ->
float4 {
129 mf::build::exec_presets::Materialized());
142 ntype.
ui_name =
"Combine RGBA (Legacy)";
146 ntype.
declare = file_ns::cmp_node_combrgba_declare;
148 ntype.
gpu_fn = file_ns::node_gpu_material;
#define NODE_CLASS_CONVERTER
#define CMP_NODE_SEPRGBA_LEGACY
#define CMP_NODE_COMBRGBA_LEGACY
#define BLT_I18NCONTEXT_COLOR
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_matching_fn(const mf::MultiFunction *fn)
int compositor_domain_priority() const
VecBase< float, 4 > float4
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_combrgba_declare(NodeDeclarationBuilder &b)
static int node_gpu_material(GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static void cmp_node_seprgba_declare(NodeDeclarationBuilder &b)
static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &builder)
VecBase< float, 4 > float4
static void register_node_type_cmp_combrgba()
static void register_node_type_cmp_seprgba()
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