Blender V5.0
compositor_double_edge_mask_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
6
7GPU_SHADER_CREATE_INFO(compositor_double_edge_mask_compute_boundary)
9PUSH_CONSTANT(bool, include_all_inner_edges)
10PUSH_CONSTANT(bool, include_edges_of_image)
11SAMPLER(0, sampler2D, inner_mask_tx)
12SAMPLER(1, sampler2D, outer_mask_tx)
13IMAGE(0, SINT_16_16, write, iimage2D, inner_boundary_img)
14IMAGE(1, SINT_16_16, write, iimage2D, outer_boundary_img)
15COMPUTE_SOURCE("compositor_double_edge_mask_compute_boundary.glsl")
18
19GPU_SHADER_CREATE_INFO(compositor_double_edge_mask_compute_gradient)
20LOCAL_GROUP_SIZE(16, 16)
21SAMPLER(0, sampler2D, inner_mask_tx)
22SAMPLER(1, sampler2D, outer_mask_tx)
23SAMPLER(2, isampler2D, flooded_inner_boundary_tx)
24SAMPLER(3, isampler2D, flooded_outer_boundary_tx)
25IMAGE(0, SFLOAT_16, write, image2D, output_img)
26COMPUTE_SOURCE("compositor_double_edge_mask_compute_gradient.glsl")
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define PUSH_CONSTANT(type, name)
#define LOCAL_GROUP_SIZE(...)
#define IMAGE(slot, format, qualifiers, type, name)
#define COMPUTE_SOURCE(filename)
#define DO_STATIC_COMPILATION()
ImageBase< int, 2 > iimage2D
ImageBase< float, 2 > image2D
SamplerBase< int, 2 > isampler2D
SamplerBase< float, 2 > sampler2D