Blender V5.0
compositor_z_combine_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_z_combine_simple_image)
9PUSH_CONSTANT(bool, use_alpha)
10SAMPLER(0, sampler2D, first_tx)
11SAMPLER(1, sampler2D, first_z_tx)
12SAMPLER(2, sampler2D, second_tx)
13SAMPLER(3, sampler2D, second_z_tx)
14IMAGE(0, SFLOAT_16_16_16_16, write, image2D, combined_img)
15COMPUTE_SOURCE("compositor_z_combine_simple_image.glsl")
18
19GPU_SHADER_CREATE_INFO(compositor_z_combine_simple_depth)
20LOCAL_GROUP_SIZE(16, 16)
21SAMPLER(0, sampler2D, first_z_tx)
22SAMPLER(1, sampler2D, second_z_tx)
23IMAGE(0, SFLOAT_16, write, image2D, combined_z_img)
24COMPUTE_SOURCE("compositor_z_combine_simple_depth.glsl")
27
28GPU_SHADER_CREATE_INFO(compositor_z_combine_compute_mask)
29LOCAL_GROUP_SIZE(16, 16)
30SAMPLER(0, sampler2D, first_z_tx)
31SAMPLER(1, sampler2D, second_z_tx)
32IMAGE(0, SFLOAT_16, write, image2D, mask_img)
33COMPUTE_SOURCE("compositor_z_combine_compute_mask.glsl")
36
37GPU_SHADER_CREATE_INFO(compositor_z_combine_from_mask_image)
38LOCAL_GROUP_SIZE(16, 16)
39PUSH_CONSTANT(bool, use_alpha)
40SAMPLER(0, sampler2D, first_tx)
41SAMPLER(2, sampler2D, second_tx)
42SAMPLER(4, sampler2D, mask_tx)
43IMAGE(0, SFLOAT_16_16_16_16, write, image2D, combined_img)
44COMPUTE_SOURCE("compositor_z_combine_from_mask_image.glsl")
47
48GPU_SHADER_CREATE_INFO(compositor_z_combine_from_mask_depth)
49LOCAL_GROUP_SIZE(16, 16)
50SAMPLER(0, sampler2D, first_z_tx)
51SAMPLER(1, sampler2D, second_z_tx)
52IMAGE(0, SFLOAT_16, write, image2D, combined_z_img)
53COMPUTE_SOURCE("compositor_z_combine_from_mask_depth.glsl")
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define PUSH_CONSTANT(type, 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