22 b.add_input<
decl::Color>(
"Off").default_value({0.8f, 0.8f, 0.8f, 1.0f});
23 b.add_input<
decl::Color>(
"On").default_value({0.8f, 0.8f, 0.8f, 1.0f});
42 input.pass_through(result);
65 ntype.
declare = file_ns::cmp_node_switch_declare;
#define NODE_CLASS_LAYOUT
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
NodeOperation(Context &context, DNode node)
const bNode & bnode() const
Result & get_input(StringRef identifier) const
Result & get_result(StringRef identifier)
local_group_size(16, 16) .push_constant(Type b
void node_type_size_preset(bNodeType *ntype, eNodeSizePreset size)
void node_register_type(bNodeType *ntype)
static void node_composit_buts_switch(uiLayout *layout, bContext *, PointerRNA *ptr)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
static void cmp_node_switch_declare(NodeDeclarationBuilder &b)
void register_node_type_cmp_switch()
void cmp_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
NodeGetCompositorOperationFunction get_compositor_operation
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare