Blender V5.3
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
5#ifdef GPU_SHADER
6# pragma once
7# include "gpu_shader_compat.hh"
8#endif
9
10#ifdef GLSL_CPP_STUBS
11# define VARIABLE_SIZE
12#endif
13
15
16GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_shared)
17LOCAL_GROUP_SIZE(16, 16)
18IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
19COMPUTE_SOURCE("compositor_kuwahara_classic.glsl")
21
22GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_convolution_shared)
23ADDITIONAL_INFO(compositor_kuwahara_classic_shared)
24SAMPLER(0, sampler2D, input_tx)
26
27GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_convolution_constant_size)
28ADDITIONAL_INFO(compositor_kuwahara_classic_convolution_shared)
30DEFINE("CONSTANT_SIZE")
33
34GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_convolution_variable_size)
35ADDITIONAL_INFO(compositor_kuwahara_classic_convolution_shared)
36SAMPLER(1, sampler2D, size_tx)
37DEFINE("VARIABLE_SIZE")
40
41GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_summed_area_table_shared)
42ADDITIONAL_INFO(compositor_kuwahara_classic_shared)
43DEFINE("SUMMED_AREA_TABLE")
44SAMPLER(0, sampler2D, table_tx)
45SAMPLER(1, sampler2D, squared_table_tx)
47
48GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_summed_area_table_constant_size)
49ADDITIONAL_INFO(compositor_kuwahara_classic_summed_area_table_shared)
51DEFINE("CONSTANT_SIZE")
54
55GPU_SHADER_CREATE_INFO(compositor_kuwahara_classic_summed_area_table_variable_size)
56ADDITIONAL_INFO(compositor_kuwahara_classic_summed_area_table_shared)
57SAMPLER(2, sampler2D, size_tx)
58DEFINE("VARIABLE_SIZE")
61
62GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_compute_structure_tensor)
63LOCAL_GROUP_SIZE(16, 16)
64SAMPLER(0, sampler2D, input_tx)
65IMAGE(0, SFLOAT_16_16_16_16, write, image2D, structure_tensor_img)
66COMPUTE_SOURCE("compositor_kuwahara_anisotropic_compute_structure_tensor.glsl")
69
70GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_shared)
71LOCAL_GROUP_SIZE(16, 16)
72PUSH_CONSTANT(float, eccentricity)
73PUSH_CONSTANT(float, sharpness)
74SAMPLER(0, sampler2D, input_tx)
75SAMPLER(1, sampler2D, structure_tensor_tx)
76IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
77COMPUTE_SOURCE("compositor_kuwahara_anisotropic.glsl")
79
80GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_constant_size)
81ADDITIONAL_INFO(compositor_kuwahara_anisotropic_shared)
82DEFINE("CONSTANT_SIZE")
83PUSH_CONSTANT(float, size)
86
87GPU_SHADER_CREATE_INFO(compositor_kuwahara_anisotropic_variable_size)
88ADDITIONAL_INFO(compositor_kuwahara_anisotropic_shared)
89DEFINE("VARIABLE_SIZE")
90SAMPLER(2, sampler2D, size_tx)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
@ SFLOAT_16_16_16_16
#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