Blender V5.0
compositor_plane_deform_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_plane_deform_mask)
9PUSH_CONSTANT(float4x4, homography_matrix)
10PUSH_CONSTANT(bool, is_x_clipped)
11PUSH_CONSTANT(bool, is_y_clipped)
12IMAGE(0, SFLOAT_16, write, image2D, mask_img)
13COMPUTE_SOURCE("compositor_plane_deform_mask.glsl")
16
17GPU_SHADER_CREATE_INFO(compositor_plane_deform_shared)
18LOCAL_GROUP_SIZE(16, 16)
19PUSH_CONSTANT(float4x4, homography_matrix)
20SAMPLER(0, sampler2D, input_tx)
21IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
23
24GPU_SHADER_CREATE_INFO(compositor_plane_deform_masked_shared)
25ADDITIONAL_INFO(compositor_plane_deform_shared)
26DEFINE("PREMULTIPLY_MASK")
27SAMPLER(1, sampler2D, mask_tx)
29
30GPU_SHADER_CREATE_INFO(compositor_plane_deform)
31ADDITIONAL_INFO(compositor_plane_deform_shared)
32DEFINE_VALUE("SAMPLER_FUNCTION", "texture")
33COMPUTE_SOURCE("compositor_plane_deform.glsl")
36
37GPU_SHADER_CREATE_INFO(compositor_plane_deform_masked)
38ADDITIONAL_INFO(compositor_plane_deform_masked_shared)
39DEFINE_VALUE("SAMPLER_FUNCTION", "texture")
40COMPUTE_SOURCE("compositor_plane_deform.glsl")
43
44GPU_SHADER_CREATE_INFO(compositor_plane_deform_bicubic)
45ADDITIONAL_INFO(compositor_plane_deform_shared)
46DEFINE_VALUE("SAMPLER_FUNCTION", "texture_bicubic")
47COMPUTE_SOURCE("compositor_plane_deform.glsl")
50
51GPU_SHADER_CREATE_INFO(compositor_plane_deform_bicubic_masked)
52ADDITIONAL_INFO(compositor_plane_deform_masked_shared)
53DEFINE_VALUE("SAMPLER_FUNCTION", "texture_bicubic")
54COMPUTE_SOURCE("compositor_plane_deform.glsl")
57
58GPU_SHADER_CREATE_INFO(compositor_plane_deform_anisotropic_masked)
59ADDITIONAL_INFO(compositor_plane_deform_masked_shared)
60COMPUTE_SOURCE("compositor_plane_deform_anisotropic.glsl")
63
64GPU_SHADER_CREATE_INFO(compositor_plane_deform_motion_blur_mask)
65LOCAL_GROUP_SIZE(16, 16)
66PUSH_CONSTANT(int, number_of_motion_blur_samples)
67UNIFORM_BUF(0, float4x4, homography_matrices[64])
68IMAGE(0, SFLOAT_16, write, image2D, mask_img)
69COMPUTE_SOURCE("compositor_plane_deform_motion_blur_mask.glsl")
72
73GPU_SHADER_CREATE_INFO(compositor_plane_deform_motion_blur)
74LOCAL_GROUP_SIZE(16, 16)
75PUSH_CONSTANT(int, number_of_motion_blur_samples)
76UNIFORM_BUF(0, float4x4, homography_matrices[64])
77SAMPLER(0, sampler2D, input_tx)
78SAMPLER(1, sampler2D, mask_tx)
79IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
80COMPUTE_SOURCE("compositor_plane_deform_motion_blur.glsl")
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define UNIFORM_BUF(slot, type_name, name)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define DEFINE(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
MatBase< 4, 4 > float4x4
SamplerBase< float, 2 > sampler2D