34 NodeMask *data = MEM_cnew<NodeMask>(__func__);
35 data->size_x = data->size_y = 256;
118 return int2(node_storage(
bnode()).size_x, node_storage(
bnode()).size_y);
180 ntype.
declare = file_ns::cmp_node_mask_declare;
182 ntype.
initfunc = file_ns::node_composit_init_mask;
183 ntype.
labelfunc = file_ns::node_mask_label;
#define NODE_STORAGE_FUNCS(StorageT)
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
@ CMP_NODE_MASK_FLAG_SIZE_FIXED
@ CMP_NODE_MASK_FLAG_NO_FEATHER
@ CMP_NODE_MASK_FLAG_SIZE_FIXED_SCENE
@ CMP_NODE_MASK_FLAG_MOTION_BLUR
void uiTemplateID(uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, int filter=UI_TEMPLATE_ID_FILTER_ALL, bool live_icon=false, const char *text=nullptr)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
@ UI_ITEM_R_SPLIT_EMPTY_NAME
int get_motion_blur_samples()
float get_motion_blur_shutter()
Domain compute_domain() override
CMPNodeMaskFlags get_flags()
CachedMask & get(Context &context, Mask *mask, int2 size, float aspect_ratio, bool use_feather, int motion_blur_samples, float motion_blur_shutter)
StaticCacheManager & cache_manager()
int2 get_compositing_region_size() const
virtual const RenderData & get_render_data() const =0
float get_render_percentage() const
NodeOperation(Context &context, DNode node)
const bNode & bnode() const
Result & get_result(StringRef identifier)
Context & context() const
void wrap_external(GPUTexture *texture)
CachedMaskContainer cached_masks
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_mask(uiLayout *layout, bContext *C, PointerRNA *ptr)
static void cmp_node_mask_declare(NodeDeclarationBuilder &b)
static void node_mask_label(const bNodeTree *, const bNode *node, char *label, int label_maxncpy)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
static void node_composit_init_mask(bNodeTree *, bNode *node)
VecBase< int32_t, 2 > int2
void register_node_type_cmp_mask()
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(* labelfunc)(const bNodeTree *ntree, const bNode *node, char *label, int label_maxncpy)
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare