Blender V4.3
compositor_plane_deform_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_plane_deform_mask)
8 .local_group_size(16, 16)
9 .push_constant(Type::MAT4, "homography_matrix")
10 .image(0, GPU_R16F, Qualifier::WRITE, ImageType::FLOAT_2D, "mask_img")
11 .compute_source("compositor_plane_deform_mask.glsl")
12 .do_static_compilation(true);
13
14GPU_SHADER_CREATE_INFO(compositor_plane_deform)
15 .local_group_size(16, 16)
16 .push_constant(Type::MAT4, "homography_matrix")
17 .sampler(0, ImageType::FLOAT_2D, "input_tx")
18 .sampler(1, ImageType::FLOAT_2D, "mask_tx")
19 .image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_img")
20 .compute_source("compositor_plane_deform.glsl")
21 .do_static_compilation(true);
22
23GPU_SHADER_CREATE_INFO(compositor_plane_deform_motion_blur_mask)
24 .local_group_size(16, 16)
25 .push_constant(Type::INT, "number_of_motion_blur_samples")
26 .uniform_buf(0, "mat4", "homography_matrices[64]")
27 .image(0, GPU_R16F, Qualifier::WRITE, ImageType::FLOAT_2D, "mask_img")
28 .compute_source("compositor_plane_deform_motion_blur_mask.glsl")
29 .do_static_compilation(true);
30
31GPU_SHADER_CREATE_INFO(compositor_plane_deform_motion_blur)
32 .local_group_size(16, 16)
33 .push_constant(Type::INT, "number_of_motion_blur_samples")
34 .uniform_buf(0, "mat4", "homography_matrices[64]")
35 .sampler(0, ImageType::FLOAT_2D, "input_tx")
36 .sampler(1, ImageType::FLOAT_2D, "mask_tx")
37 .image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_img")
38 .compute_source("compositor_plane_deform_motion_blur.glsl")
39 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)