Blender V5.0
compositor_kuwahara_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_kuwahara_classic_shared)
9IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
10COMPUTE_SOURCE("compositor_kuwahara_classic.glsl")
12
13GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_convolution_shared)
14ADDITIONAL_INFO(compositor_kuwahara_classic_shared)
15SAMPLER(0, sampler2D, input_tx)
17
18GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_convolution_constant_size)
19ADDITIONAL_INFO(compositor_kuwahara_classic_convolution_shared)
21DEFINE("CONSTANT_SIZE")
24
25GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_convolution_variable_size)
26ADDITIONAL_INFO(compositor_kuwahara_classic_convolution_shared)
27SAMPLER(1, sampler2D, size_tx)
28DEFINE("VARIABLE_SIZE")
31
32GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_summed_area_table_shared)
33ADDITIONAL_INFO(compositor_kuwahara_classic_shared)
34DEFINE("SUMMED_AREA_TABLE")
35SAMPLER(0, sampler2D, table_tx)
36SAMPLER(1, sampler2D, squared_table_tx)
38
39GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_summed_area_table_constant_size)
40ADDITIONAL_INFO(compositor_kuwahara_classic_summed_area_table_shared)
42DEFINE("CONSTANT_SIZE")
45
46GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_summed_area_table_variable_size)
47ADDITIONAL_INFO(compositor_kuwahara_classic_summed_area_table_shared)
48SAMPLER(2, sampler2D, size_tx)
49DEFINE("VARIABLE_SIZE")
52
53GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_compute_structure_tensor)
54LOCAL_GROUP_SIZE(16, 16)
55SAMPLER(0, sampler2D, input_tx)
56IMAGE(0, SFLOAT_16_16_16_16, write, image2D, structure_tensor_img)
57COMPUTE_SOURCE("compositor_kuwahara_anisotropic_compute_structure_tensor.glsl")
60
61GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_shared)
62LOCAL_GROUP_SIZE(16, 16)
63PUSH_CONSTANT(float, eccentricity)
64PUSH_CONSTANT(float, sharpness)
65SAMPLER(0, sampler2D, input_tx)
66SAMPLER(1, sampler2D, structure_tensor_tx)
67IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
68COMPUTE_SOURCE("compositor_kuwahara_anisotropic.glsl")
70
71GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_constant_size)
72ADDITIONAL_INFO(compositor_kuwahara_anisotropic_shared)
73DEFINE("CONSTANT_SIZE")
74PUSH_CONSTANT(float, size)
77
78GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_variable_size)
79ADDITIONAL_INFO(compositor_kuwahara_anisotropic_shared)
80DEFINE("VARIABLE_SIZE")
81SAMPLER(2, sampler2D, size_tx)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define DEFINE(name)
#define LOCAL_GROUP_SIZE(...)
#define IMAGE(slot, format, qualifiers, type, name)
#define COMPUTE_SOURCE(filename)
#define DO_STATIC_COMPILATION()
ImageBase< float, 2 > image2D
SamplerBase< float, 2 > sampler2D