Blender V5.3
compositor_morphological_blur_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifdef GPU_SHADER
6# pragma once
7# include "gpu_shader_compat.hh"
8#endif
9
10#ifdef GLSL_CPP_STUBS
11# undef OPERATOR
12# define OPERATOR(x, y) max(x, y)
13#endif
14
16
17GPU_SHADER_CREATE_INFO(compositor_morphological_blur_shared)
18LOCAL_GROUP_SIZE(16, 16)
19SAMPLER(0, sampler2D, input_tx)
20IMAGE(0, SFLOAT_16, read_write, image2D, blurred_input_img)
21COMPUTE_SOURCE("compositor_morphological_blur.glsl")
23
24GPU_SHADER_CREATE_INFO(compositor_morphological_blur_dilate)
25ADDITIONAL_INFO(compositor_morphological_blur_shared)
26DEFINE_VALUE("OPERATOR(x, y)", "max(x, y)")
29
30GPU_SHADER_CREATE_INFO(compositor_morphological_blur_erode)
31ADDITIONAL_INFO(compositor_morphological_blur_shared)
32DEFINE_VALUE("OPERATOR(x, y)", "min(x, y)")
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define ADDITIONAL_INFO(info_name)
#define LOCAL_GROUP_SIZE(...)
#define IMAGE(slot, format, qualifiers, type, name)
#define COMPUTE_SOURCE(filename)
#define DO_STATIC_COMPILATION()
#define DEFINE_VALUE(name, value)
ImageBase< float, 2 > image2D
SamplerBase< float, 2 > sampler2D