Blender V5.0
compositor_lens_distortion_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
7/* Radial Lens Distortion. */
8
9GPU_SHADER_CREATE_INFO(compositor_radial_lens_distortion_shared)
10LOCAL_GROUP_SIZE(16, 16)
11PUSH_CONSTANT(float3, chromatic_distortion)
12PUSH_CONSTANT(float, scale)
13SAMPLER(0, sampler2D, input_tx)
14IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
15COMPUTE_SOURCE("compositor_radial_lens_distortion.glsl")
17
18GPU_SHADER_CREATE_INFO(compositor_radial_lens_distortion)
19ADDITIONAL_INFO(compositor_radial_lens_distortion_shared)
22
23GPU_SHADER_CREATE_INFO(compositor_radial_lens_distortion_jitter)
24ADDITIONAL_INFO(compositor_radial_lens_distortion_shared)
25DEFINE("JITTER")
28
29/* Horizontal Lens Distortion. */
30
31GPU_SHADER_CREATE_INFO(compositor_horizontal_lens_distortion)
32LOCAL_GROUP_SIZE(16, 16)
33PUSH_CONSTANT(float, dispersion)
34SAMPLER(0, sampler2D, input_tx)
35IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
36COMPUTE_SOURCE("compositor_horizontal_lens_distortion.glsl")
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, 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()
ImageBase< float, 2 > image2D
SamplerBase< float, 2 > sampler2D