Blender V5.3
compositor_morphological_distance_feather_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# undef FUNCTION
13# define OPERATOR(x) x
14# define FUNCTION(x) x
15#endif
16
18
19GPU_SHADER_CREATE_INFO(compositor_morphological_distance_feather_shared)
20LOCAL_GROUP_SIZE(16, 16)
21SAMPLER(0, sampler2D, input_tx)
22SAMPLER(1, sampler2D, weights_tx)
23SAMPLER(2, sampler2D, falloffs_tx)
24IMAGE(0, SFLOAT_16, write, image2D, output_img)
25COMPUTE_SOURCE("compositor_morphological_distance_feather.glsl")
27
28GPU_SHADER_CREATE_INFO(compositor_morphological_distance_feather_dilate)
29ADDITIONAL_INFO(compositor_morphological_distance_feather_shared)
30DEFINE_VALUE("FUNCTION(x)", "x")
33
34GPU_SHADER_CREATE_INFO(compositor_morphological_distance_feather_erode)
35ADDITIONAL_INFO(compositor_morphological_distance_feather_shared)
36DEFINE_VALUE("FUNCTION(x)", "1.0f - x")
#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