Blender V5.3
compositor_summed_area_table_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 OPERATION(value) value
12#endif
13
15
16GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_incomplete_prologues_shared)
17LOCAL_GROUP_SIZE(16, 16)
18SAMPLER(0, sampler2D, input_tx)
19IMAGE(0, SFLOAT_32_32_32_32, write, image2D, incomplete_x_prologues_img)
20IMAGE(1, SFLOAT_32_32_32_32, write, image2D, incomplete_y_prologues_img)
21COMPUTE_SOURCE("compositor_summed_area_table_compute_incomplete_prologues.glsl")
23
24GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_incomplete_prologues_identity)
25ADDITIONAL_INFO(compositor_summed_area_table_compute_incomplete_prologues_shared)
26DEFINE_VALUE("OPERATION(value)", "value")
29
30GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_incomplete_prologues_square)
31ADDITIONAL_INFO(compositor_summed_area_table_compute_incomplete_prologues_shared)
32DEFINE_VALUE("OPERATION(value)", "value * value")
35
36GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_x_prologues)
38SAMPLER(0, sampler2D, incomplete_x_prologues_tx)
39IMAGE(0, SFLOAT_32_32_32_32, write, image2D, complete_x_prologues_img)
40IMAGE(1, SFLOAT_32_32_32_32, write, image2D, complete_x_prologues_sum_img)
41COMPUTE_SOURCE("compositor_summed_area_table_compute_complete_x_prologues.glsl")
44
45GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_y_prologues)
47SAMPLER(0, sampler2D, incomplete_y_prologues_tx)
48SAMPLER(1, sampler2D, complete_x_prologues_sum_tx)
49IMAGE(0, SFLOAT_32_32_32_32, write, image2D, complete_y_prologues_img)
50COMPUTE_SOURCE("compositor_summed_area_table_compute_complete_y_prologues.glsl")
53
54GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_blocks_shared)
55LOCAL_GROUP_SIZE(16, 16)
56SAMPLER(0, sampler2D, input_tx)
57SAMPLER(1, sampler2D, complete_x_prologues_tx)
58SAMPLER(2, sampler2D, complete_y_prologues_tx)
59IMAGE(0, SFLOAT_32_32_32_32, read_write, image2D, output_img)
60COMPUTE_SOURCE("compositor_summed_area_table_compute_complete_blocks.glsl")
62
63GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_blocks_identity)
64ADDITIONAL_INFO(compositor_summed_area_table_compute_complete_blocks_shared)
65DEFINE_VALUE("OPERATION(value)", "value")
68
69GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_blocks_square)
70ADDITIONAL_INFO(compositor_summed_area_table_compute_complete_blocks_shared)
71DEFINE_VALUE("OPERATION(value)", "value * value")
@ SFLOAT_32_32_32_32
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define ADDITIONAL_INFO(info_name)
#define LOCAL_GROUP_SIZE(...)
#define IMAGE(slot, format, qualifiers, type, name)
#define COMPUTE_SOURCE(filename)
#define DO_STATIC_COMPILATION()
#define DEFINE_VALUE(name, value)
ImageBase< float, 2 > image2D
SamplerBase< float, 2 > sampler2D