29 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
30 .compositor_domain_priority(0);
37 NodeChroma *c = MEM_cnew<NodeChroma>(__func__);
102 float limit_channels[2];
109 "node_composite_channel_matte",
137 return node_storage(
bnode()).channel - 1;
160 return node_storage(
bnode()).t1;
165 return node_storage(
bnode()).t2;
183 ntype.
declare = file_ns::cmp_node_channel_matte_declare;
184 ntype.
draw_buttons = file_ns::node_composit_buts_channel_matte;
186 ntype.
initfunc = file_ns::node_composit_init_channel_matte;
#define NODE_STORAGE_FUNCS(StorageT)
@ CMP_NODE_CHANNEL_MATTE_LIMIT_ALGORITHM_MAX
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
GPUNodeLink * GPU_constant(const float *num)
GPUNodeLink * GPU_uniform(const float *num)
void uiItemL(uiLayout *layout, const char *name, int icon)
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
void get_limit_channels(float limit_channels[2])
void compile(GPUMaterial *material) override
GPUNodeStack * get_inputs_array()
GPUNodeStack * get_outputs_array()
const bNode & bnode() const
local_group_size(16, 16) .push_constant(Type b
void node_type_storage(bNodeType *ntype, const char *storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
void node_register_type(bNodeType *ntype)
static void node_composit_buts_channel_matte(uiLayout *layout, bContext *, PointerRNA *ptr)
static void cmp_node_channel_matte_declare(NodeDeclarationBuilder &b)
static ShaderNode * get_compositor_shader_node(DNode node)
static void node_composit_init_channel_matte(bNodeTree *, bNode *node)
void register_node_type_cmp_channel_matte()
void cmp_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void(* initfunc)(bNodeTree *ntree, bNode *node)
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
NodeGetCompositorShaderNodeFunction get_compositor_shader_node