Blender V5.3
compositor_van_vliet_gaussian_blur_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifdef GPU_SHADER
6# pragma once
7# include "gpu_shader_compat.hh"
8#endif
9
11
12GPU_SHADER_CREATE_INFO(compositor_van_vliet_gaussian_blur)
14PUSH_CONSTANT(float2, first_feedback_coefficients)
15PUSH_CONSTANT(float2, first_causal_feedforward_coefficients)
16PUSH_CONSTANT(float2, first_non_causal_feedforward_coefficients)
17PUSH_CONSTANT(float2, second_feedback_coefficients)
18PUSH_CONSTANT(float2, second_causal_feedforward_coefficients)
19PUSH_CONSTANT(float2, second_non_causal_feedforward_coefficients)
20PUSH_CONSTANT(float, first_causal_boundary_coefficient)
21PUSH_CONSTANT(float, first_non_causal_boundary_coefficient)
22PUSH_CONSTANT(float, second_causal_boundary_coefficient)
23PUSH_CONSTANT(float, second_non_causal_boundary_coefficient)
24SAMPLER(0, sampler2D, input_tx)
25IMAGE(0, SFLOAT_16_16_16_16, write, image2D, first_causal_output_img)
26IMAGE(1, SFLOAT_16_16_16_16, write, image2D, first_non_causal_output_img)
27IMAGE(2, SFLOAT_16_16_16_16, write, image2D, second_causal_output_img)
28IMAGE(3, SFLOAT_16_16_16_16, write, image2D, second_non_causal_output_img)
29COMPUTE_SOURCE("compositor_van_vliet_gaussian_blur.glsl")
32
33GPU_SHADER_CREATE_INFO(compositor_van_vliet_gaussian_blur_sum)
34LOCAL_GROUP_SIZE(16, 16)
35SAMPLER(0, sampler2D, first_causal_input_tx)
36SAMPLER(1, sampler2D, first_non_causal_input_tx)
37SAMPLER(2, sampler2D, second_causal_input_tx)
38SAMPLER(3, sampler2D, second_non_causal_input_tx)
39IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
40COMPUTE_SOURCE("compositor_van_vliet_gaussian_blur_sum.glsl")
@ SFLOAT_16_16_16_16
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define PUSH_CONSTANT(type, 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