Blender V5.3
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
5#ifdef GPU_SHADER
6# pragma once
7# include "gpu_shader_compat.hh"
8#endif
9
11
12GPU_SHADER_CREATE_INFO(compositor_z_combine_simple_image)
13LOCAL_GROUP_SIZE(16, 16)
14PUSH_CONSTANT(bool, use_alpha)
15SAMPLER(0, sampler2D, first_tx)
16SAMPLER(1, sampler2D, first_z_tx)
17SAMPLER(2, sampler2D, second_tx)
18SAMPLER(3, sampler2D, second_z_tx)
19IMAGE(0, SFLOAT_16_16_16_16, write, image2D, combined_img)
20COMPUTE_SOURCE("compositor_z_combine_simple_image.glsl")
23
24GPU_SHADER_CREATE_INFO(compositor_z_combine_simple_depth)
25LOCAL_GROUP_SIZE(16, 16)
26SAMPLER(0, sampler2D, first_z_tx)
27SAMPLER(1, sampler2D, second_z_tx)
28IMAGE(0, SFLOAT_16, write, image2D, combined_z_img)
29COMPUTE_SOURCE("compositor_z_combine_simple_depth.glsl")
32
33GPU_SHADER_CREATE_INFO(compositor_z_combine_compute_mask)
34LOCAL_GROUP_SIZE(16, 16)
35SAMPLER(0, sampler2D, first_z_tx)
36SAMPLER(1, sampler2D, second_z_tx)
37IMAGE(0, SFLOAT_16, write, image2D, mask_img)
38COMPUTE_SOURCE("compositor_z_combine_compute_mask.glsl")
41
42GPU_SHADER_CREATE_INFO(compositor_z_combine_from_mask_image)
43LOCAL_GROUP_SIZE(16, 16)
44PUSH_CONSTANT(bool, use_alpha)
45SAMPLER(0, sampler2D, first_tx)
46SAMPLER(2, sampler2D, second_tx)
47SAMPLER(4, sampler2D, mask_tx)
48IMAGE(0, SFLOAT_16_16_16_16, write, image2D, combined_img)
49COMPUTE_SOURCE("compositor_z_combine_from_mask_image.glsl")
52
53GPU_SHADER_CREATE_INFO(compositor_z_combine_from_mask_depth)
54LOCAL_GROUP_SIZE(16, 16)
55SAMPLER(0, sampler2D, first_z_tx)
56SAMPLER(1, sampler2D, second_z_tx)
57IMAGE(0, SFLOAT_16, write, image2D, combined_z_img)
58COMPUTE_SOURCE("compositor_z_combine_from_mask_depth.glsl")
@ SFLOAT_16_16_16_16
#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