Blender V5.3
compositor_mask_to_sdf_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 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
11
12GPU_SHADER_CREATE_INFO(compositor_mask_to_sdf_compute_boundary)
13LOCAL_GROUP_SIZE(16, 16)
14SAMPLER(0, isampler2D, mask_tx)
15IMAGE(0, SINT_16_16, write, iimage2D, boundary_img)
16COMPUTE_SOURCE("compositor_mask_to_sdf_compute_boundary.glsl")
19
20GPU_SHADER_CREATE_INFO(compositor_mask_to_sdf_compute_distance)
21LOCAL_GROUP_SIZE(16, 16)
22SAMPLER(0, isampler2D, mask_tx)
23SAMPLER(1, isampler2D, flooded_boundary_tx)
24IMAGE(0, SFLOAT_16, write, image2D, distance_img)
25COMPUTE_SOURCE("compositor_mask_to_sdf_compute_distance.glsl")
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, 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