27 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
28 .compositor_domain_priority(0);
48 static auto function = mf::build::SI1_SO4<float4, float, float, float, float>(
49 "Separate Color HSVA",
50 [](
const float4 &
color,
float &h,
float &s,
float &
v,
float &a) ->
void {
54 mf::build::exec_presets::AllSpanOrSingle());
67 ntype.
ui_name =
"Separate HSVA (Legacy)";
71 ntype.
declare = file_ns::cmp_node_sephsva_declare;
73 ntype.
gpu_fn = file_ns::node_gpu_material;
123 static auto function = mf::build::SI4_SO<float, float, float, float, float4>(
124 "Combine Color HSVA",
125 [](
const float h,
const float s,
const float v,
const float a) ->
float4 {
131 mf::build::exec_presets::Materialized());
144 ntype.
ui_name =
"Combine HSVA (Legacy)";
148 ntype.
declare = file_ns::cmp_node_combhsva_declare;
150 ntype.
gpu_fn = file_ns::node_gpu_material;
#define NODE_CLASS_CONVERTER
#define CMP_NODE_SEPHSVA_LEGACY
#define CMP_NODE_COMBHSVA_LEGACY
void rgb_to_hsv(float r, float g, float b, float *r_h, float *r_s, float *r_v)
void hsv_to_rgb(float h, float s, float v, float *r_r, float *r_g, float *r_b)
#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)
ATTR_WARN_UNUSED_RESULT const BMVert * v
void set_matching_fn(const mf::MultiFunction *fn)
int compositor_domain_priority() const
void node_register_type(bNodeType &ntype)
static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &builder)
static int node_gpu_material(GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
static void cmp_node_combhsva_declare(NodeDeclarationBuilder &b)
static void cmp_node_sephsva_declare(NodeDeclarationBuilder &b)
static void node_build_multi_function(blender::nodes::NodeMultiFunctionBuilder &builder)
static int node_gpu_material(GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *inputs, GPUNodeStack *outputs)
VecBase< float, 4 > float4
static void register_node_type_cmp_sephsva()
static void register_node_type_cmp_combhsva()
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