Blender V4.3
compositor_cryptomatte_info.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_cryptomatte_pick)
8 .local_group_size(16, 16)
9 .push_constant(Type::IVEC2, "lower_bound")
10 .sampler(0, ImageType::FLOAT_2D, "first_layer_tx")
11 .image(0, GPU_RGBA32F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_img")
12 .compute_source("compositor_cryptomatte_pick.glsl")
13 .do_static_compilation(true);
14
15GPU_SHADER_CREATE_INFO(compositor_cryptomatte_matte)
16 .local_group_size(16, 16)
17 .push_constant(Type::IVEC2, "lower_bound")
18 .push_constant(Type::INT, "identifiers_count")
19 .push_constant(Type::FLOAT, "identifiers", 32)
20 .sampler(0, ImageType::FLOAT_2D, "layer_tx")
21 .image(0, GPU_R16F, Qualifier::READ_WRITE, ImageType::FLOAT_2D, "matte_img")
22 .compute_source("compositor_cryptomatte_matte.glsl")
23 .do_static_compilation(true);
24
25GPU_SHADER_CREATE_INFO(compositor_cryptomatte_image)
26 .local_group_size(16, 16)
27 .sampler(0, ImageType::FLOAT_2D, "input_tx")
28 .sampler(1, ImageType::FLOAT_2D, "matte_tx")
29 .image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_img")
30 .compute_source("compositor_cryptomatte_image.glsl")
31 .do_static_compilation(true);
local_group_size(16, 16) .push_constant(Type local_group_size(16, 16) .push_constant(Type input_tx GPU_RGBA16F
additional_info("compositor_sum_float_shared") .push_constant(Type additional_info("compositor_sum_float_shared") .push_constant(Type GPU_RGBA32F
#define GPU_SHADER_CREATE_INFO(_info)