20 b.add_input<
decl::Color>(
"Image").default_value({0.8f, 0.8f, 0.8f, 1.0f});
43 builder.single_output<
float>(
"R");
44 builder.single_output<
float>(
"G");
45 builder.single_output<
float>(
"B");
59 mask.foreach_index([&](
const int64_t i) {
84 ntype.
declare = file_ns::sh_node_seprgb_declare;
85 ntype.
gpu_fn = file_ns::gpu_shader_seprgb;
114 static auto fn = mf::build::SI3_SO<float, float, float, ColorGeometry4f>(
115 "Combine RGB", [](
float r,
float g,
float b) {
return ColorGeometry4f(r, g,
b, 1.0f); });
129 ntype.
declare = file_ns::sh_node_combrgb_declare;
130 ntype.
gpu_fn = file_ns::gpu_shader_combrgb;
#define SH_NODE_COMBRGB_LEGACY
#define NODE_CLASS_CONVERTER
#define SH_NODE_SEPRGB_LEGACY
#define BLT_I18NCONTEXT_COLOR
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
const Signature & signature() const
void set_signature(const Signature *signature)
void set_matching_fn(const mf::MultiFunction *fn)
std::string translation_context
void call(const IndexMask &mask, mf::Params params, mf::Context) const override
local_group_size(16, 16) .push_constant(Type b
void node_register_type(bNodeType *ntype)
static int gpu_shader_combrgb(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static int gpu_shader_seprgb(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void sh_node_combrgb_declare(NodeDeclarationBuilder &b)
static void sh_node_seprgb_build_multi_function(NodeMultiFunctionBuilder &builder)
static void sh_node_combrgb_build_multi_function(NodeMultiFunctionBuilder &builder)
static void sh_node_seprgb_declare(NodeDeclarationBuilder &b)
ColorSceneLinear4f< eAlpha::Premultiplied > ColorGeometry4f
void register_node_type_sh_seprgb()
void register_node_type_sh_combrgb()
void sh_fn_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
NodeGPUExecFunction gpu_fn
NodeMultiFunctionBuildFunction build_multi_function
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare