39 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
40 .compositor_domain_priority(0);
122 node_storage(
bnode()).filtertype,
124 node_storage(
bnode()).gamma);
145 context(), node_storage(
bnode()).filtertype, blur_radius);
180 context(), node_storage(
bnode()).filtertype, blur_radius);
209 if (!node_storage(
bnode()).relative) {
214 switch (node_storage(
bnode()).aspect) {
216 image_size.y = image_size.x;
219 image_size.x = image_size.y;
234 if (input.is_single_value()) {
254 if (!node_storage(
bnode()).bokeh) {
259 switch (node_storage(
bnode()).filtertype) {
276 return float2(node_storage(
bnode()).percentx, node_storage(
bnode()).percenty) / 100.0f;
304 ntype.
declare = file_ns::cmp_node_blur_declare;
307 ntype.
initfunc = file_ns::node_composit_init_blur;
#define NODE_STORAGE_FUNCS(StorageT)
#define NODE_CLASS_OP_FILTER
@ CMP_NODE_BLUR_ASPECT_NONE
@ CMP_NODEFLAG_BLUR_VARIABLE_SIZE
@ CMP_NODEFLAG_BLUR_EXTEND_BOUNDS
void GPU_shader_bind(GPUShader *shader)
void GPU_shader_uniform_1b(GPUShader *sh, const char *name, bool value)
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
struct GPUShader GPUShader
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
int compositor_domain_priority() const
float2 compute_blur_radius()
bool use_separable_filter()
void execute_constant_size()
void execute_variable_size()
StaticCacheManager & cache_manager()
GPUShader * get_shader(const char *info_name, ResultPrecision precision)
NodeOperation(Context &context, DNode node)
const bNode & bnode() const
Result & get_input(StringRef identifier) const
Result & get_result(StringRef identifier)
Context & context() const
virtual Domain compute_domain()
void bind_as_image(GPUShader *shader, const char *image_name, bool read=false) const
void pass_through(Result &target)
void unbind_as_texture() const
const Domain & domain() const
void unbind_as_image() const
bool is_single_value() const
void allocate_texture(Domain domain, bool from_pool=true)
void bind_as_texture(GPUShader *shader, const char *texture_name) const
SymmetricBlurWeightsContainer symmetric_blur_weights
SymmetricBlurWeights & get(Context &context, int type, float2 radius)
void unbind_as_texture() const
void bind_as_texture(GPUShader *shader, const char *texture_name) 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)
T clamp(const T &a, const T &min, const T &max)
static void cmp_node_blur_declare(NodeDeclarationBuilder &b)
static void node_composit_init_blur(bNodeTree *, bNode *node)
static void node_composit_buts_blur(uiLayout *layout, bContext *, PointerRNA *ptr)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
void symmetric_separable_blur(Context &context, Result &input, Result &output, float2 radius, int filter_type=R_FILTER_GAUSS, bool extend_bounds=false, bool gamma_correct=false)
void recursive_gaussian_blur(Context &context, Result &input, Result &output, float2 radius)
void compute_dispatch_threads_at_least(GPUShader *shader, int2 threads_range, int2 local_size=int2(16))
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
void register_node_type_cmp_blur()
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)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
int RNA_enum_get(PointerRNA *ptr, const char *name)
NodeGetCompositorOperationFunction get_compositor_operation
void(* initfunc)(bNodeTree *ntree, bNode *node)
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare