Blender V4.5
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)
9PUSH_CONSTANT(float4x4, homography_matrix)
10IMAGE(0, GPU_R16F, write, image2D, mask_img)
11COMPUTE_SOURCE("compositor_plane_deform_mask.glsl")
14
15GPU_SHADER_CREATE_INFO(compositor_plane_deform_shared)
16LOCAL_GROUP_SIZE(16, 16)
17PUSH_CONSTANT(float4x4, homography_matrix)
18SAMPLER(0, sampler2D, input_tx)
19SAMPLER(1, sampler2D, mask_tx)
20IMAGE(0, GPU_RGBA16F, write, image2D, output_img)
22
23GPU_SHADER_CREATE_INFO(compositor_plane_deform)
24ADDITIONAL_INFO(compositor_plane_deform_shared)
25DEFINE_VALUE("SAMPLER_FUNCTION", "texture")
26COMPUTE_SOURCE("compositor_plane_deform.glsl")
29
30GPU_SHADER_CREATE_INFO(compositor_plane_deform_bicubic)
31ADDITIONAL_INFO(compositor_plane_deform_shared)
32DEFINE_VALUE("SAMPLER_FUNCTION", "texture_bicubic")
33COMPUTE_SOURCE("compositor_plane_deform.glsl")
36
37GPU_SHADER_CREATE_INFO(compositor_plane_deform_anisotropic)
38ADDITIONAL_INFO(compositor_plane_deform_shared)
39COMPUTE_SOURCE("compositor_plane_deform_anisotropic.glsl")
42
43GPU_SHADER_CREATE_INFO(compositor_plane_deform_motion_blur_mask)
44LOCAL_GROUP_SIZE(16, 16)
45PUSH_CONSTANT(int, number_of_motion_blur_samples)
46UNIFORM_BUF(0, float4x4, homography_matrices[64])
47IMAGE(0, GPU_R16F, write, image2D, mask_img)
48COMPUTE_SOURCE("compositor_plane_deform_motion_blur_mask.glsl")
51
52GPU_SHADER_CREATE_INFO(compositor_plane_deform_motion_blur)
53LOCAL_GROUP_SIZE(16, 16)
54PUSH_CONSTANT(int, number_of_motion_blur_samples)
55UNIFORM_BUF(0, float4x4, homography_matrices[64])
56SAMPLER(0, sampler2D, input_tx)
57SAMPLER(1, sampler2D, mask_tx)
58IMAGE(0, GPU_RGBA16F, write, image2D, output_img)
59COMPUTE_SOURCE("compositor_plane_deform_motion_blur.glsl")
@ GPU_R16F
@ GPU_RGBA16F
MatBase< 4, 4 > float4x4
ImageBase< float, 2 > image2D
SamplerBase< float, 2 > sampler2D
#define SAMPLER(slot, type, name)
#define UNIFORM_BUF(slot, type_name, name)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define GPU_SHADER_CREATE_INFO(_info)
#define LOCAL_GROUP_SIZE(...)
#define IMAGE(slot, format, qualifiers, type, name)
#define GPU_SHADER_CREATE_END()
#define COMPUTE_SOURCE(filename)
#define DO_STATIC_COMPILATION()
#define DEFINE_VALUE(name, value)