Blender V4.3
compositor_morphological_distance_feather_info.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
6
7GPU_SHADER_CREATE_INFO(compositor_morphological_distance_feather_shared)
8 .local_group_size(16, 16)
9 .sampler(0, ImageType::FLOAT_2D, "input_tx")
10 .sampler(1, ImageType::FLOAT_1D, "weights_tx")
11 .sampler(2, ImageType::FLOAT_1D, "falloffs_tx")
12 .image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_img")
13 .compute_source("compositor_morphological_distance_feather.glsl");
14
15GPU_SHADER_CREATE_INFO(compositor_morphological_distance_feather_dilate)
16 .additional_info("compositor_morphological_distance_feather_shared")
17 .define("FUNCTION(x)", "x")
18 .do_static_compilation(true);
19
20GPU_SHADER_CREATE_INFO(compositor_morphological_distance_feather_erode)
21 .additional_info("compositor_morphological_distance_feather_shared")
22 .define("FUNCTION(x)", "1.0 - x")
23 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)