Blender V5.0
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
6
7GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_incomplete_prologues_shared)
9SAMPLER(0, sampler2D, input_tx)
10IMAGE(0, SFLOAT_32_32_32_32, write, image2D, incomplete_x_prologues_img)
11IMAGE(1, SFLOAT_32_32_32_32, write, image2D, incomplete_y_prologues_img)
12COMPUTE_SOURCE("compositor_summed_area_table_compute_incomplete_prologues.glsl")
14
15GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_incomplete_prologues_identity)
16ADDITIONAL_INFO(compositor_summed_area_table_compute_incomplete_prologues_shared)
17DEFINE_VALUE("OPERATION(value)", "value")
20
21GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_incomplete_prologues_square)
22ADDITIONAL_INFO(compositor_summed_area_table_compute_incomplete_prologues_shared)
23DEFINE_VALUE("OPERATION(value)", "value * value")
26
27GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_x_prologues)
29SAMPLER(0, sampler2D, incomplete_x_prologues_tx)
30IMAGE(0, SFLOAT_32_32_32_32, write, image2D, complete_x_prologues_img)
31IMAGE(1, SFLOAT_32_32_32_32, write, image2D, complete_x_prologues_sum_img)
32COMPUTE_SOURCE("compositor_summed_area_table_compute_complete_x_prologues.glsl")
35
36GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_y_prologues)
38SAMPLER(0, sampler2D, incomplete_y_prologues_tx)
39SAMPLER(1, sampler2D, complete_x_prologues_sum_tx)
40IMAGE(0, SFLOAT_32_32_32_32, write, image2D, complete_y_prologues_img)
41COMPUTE_SOURCE("compositor_summed_area_table_compute_complete_y_prologues.glsl")
44
45GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_blocks_shared)
46LOCAL_GROUP_SIZE(16, 16)
47SAMPLER(0, sampler2D, input_tx)
48SAMPLER(1, sampler2D, complete_x_prologues_tx)
49SAMPLER(2, sampler2D, complete_y_prologues_tx)
50IMAGE(0, SFLOAT_32_32_32_32, read_write, image2D, output_img)
51COMPUTE_SOURCE("compositor_summed_area_table_compute_complete_blocks.glsl")
53
54GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_blocks_identity)
55ADDITIONAL_INFO(compositor_summed_area_table_compute_complete_blocks_shared)
56DEFINE_VALUE("OPERATION(value)", "value")
59
60GPU_SHADER_CREATE_INFO(compositor_summed_area_table_compute_complete_blocks_square)
61ADDITIONAL_INFO(compositor_summed_area_table_compute_complete_blocks_shared)
62DEFINE_VALUE("OPERATION(value)", "value * value")
#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