32 .compositor_domain_priority(0);
37 .compositor_domain_priority(1);
78 static auto apply_function = mf::build::SI2_SO<float4, float, float4>(
81 mf::build::exec_presets::AllSpanOrSingle());
83 static auto replace_function = mf::build::SI2_SO<float4, float, float4>(
86 mf::build::exec_presets::AllSpanOrSingle());
111 ntype.
declare = file_ns::cmp_node_setalpha_declare;
112 ntype.
draw_buttons = file_ns::node_composit_buts_set_alpha;
113 ntype.
initfunc = file_ns::node_composit_init_setalpha;
116 ntype.
gpu_fn = file_ns::node_gpu_material;
#define NODE_CLASS_CONVERTER
#define NODE_STORAGE_FUNCS(StorageT)
#define CMP_NODE_SETALPHA
@ CMP_NODE_SETALPHA_MODE_REPLACE_ALPHA
@ CMP_NODE_SETALPHA_MODE_APPLY
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
void set_matching_fn(const mf::MultiFunction *fn)
ColorGeometry4f default_value
void * MEM_callocN(size_t len, const char *str)
void node_register_type(bNodeType &ntype)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
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 node_composit_init_setalpha(bNodeTree *, bNode *node)
static void node_composit_buts_set_alpha(uiLayout *layout, bContext *, PointerRNA *ptr)
static void cmp_node_setalpha_declare(NodeDeclarationBuilder &b)
static CMPNodeSetAlphaMode get_mode(const bNode &node)
VecBase< float, 4 > float4
static void register_node_type_cmp_setalpha()
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[]
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
std::string ui_description
void(* initfunc)(bNodeTree *ntree, bNode *node)
NodeGPUExecFunction gpu_fn
NodeMultiFunctionBuildFunction build_multi_function
const char * enum_name_legacy
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)