28 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
29 .compositor_domain_priority(0);
66 input.pass_through(result);
71 x *= input.domain().size.x;
72 y *= input.domain().size.y;
88 switch (node_storage(
bnode()).interpolation) {
90 return Interpolation::Nearest;
92 return Interpolation::Bilinear;
94 return Interpolation::Bicubic;
98 return Interpolation::Nearest;
103 return node_storage(
bnode()).relative;
131 ntype.
declare = file_ns::cmp_node_translate_declare;
132 ntype.
draw_buttons = file_ns::node_composit_buts_translate;
133 ntype.
initfunc = file_ns::node_composit_init_translate;
#define NODE_STORAGE_FUNCS(StorageT)
#define NODE_CLASS_DISTORT
#define BLI_assert_unreachable()
@ CMP_NODE_INTERPOLATION_NEAREST
@ CMP_NODE_INTERPOLATION_BILINEAR
@ CMP_NODE_INTERPOLATION_BICUBIC
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
bool compositor_expects_single_value() const
Interpolation get_interpolation()
NodeOperation(Context &context, DNode node)
const bNode & bnode() const
Result & get_input(StringRef identifier) const
Result & get_result(StringRef identifier)
Context & context() const
float get_float_value_default(float default_value) 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)
MatT from_location(const typename MatT::loc_type &location)
static void node_composit_init_translate(bNodeTree *, bNode *node)
static void node_composit_buts_translate(uiLayout *layout, bContext *, PointerRNA *ptr)
static void cmp_node_translate_declare(NodeDeclarationBuilder &b)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
void transform(Context &context, Result &input, Result &output, const float3x3 &transformation, RealizationOptions realization_options)
VecBase< float, 2 > float2
void register_node_type_cmp_translate()
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)
NodeGetCompositorOperationFunction get_compositor_operation
void(* initfunc)(bNodeTree *ntree, bNode *node)
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
Interpolation interpolation