Blender V5.3
compositor_scale_variable_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
10#ifdef GLSL_CPP_STUBS
11# define SAMPLER_FUNCTION texture
12#endif
13
15
16GPU_SHADER_CREATE_INFO(compositor_scale_variable_shared)
17LOCAL_GROUP_SIZE(16, 16)
18SAMPLER(0, sampler2D, input_tx)
19SAMPLER(1, sampler2D, x_scale_tx)
20SAMPLER(2, sampler2D, y_scale_tx)
21IMAGE(0, SFLOAT_16_16_16_16, write, image2D, output_img)
22COMPUTE_SOURCE("compositor_scale_variable.glsl")
24
25GPU_SHADER_CREATE_INFO(compositor_scale_variable)
26ADDITIONAL_INFO(compositor_scale_variable_shared)
27DEFINE_VALUE("SAMPLER_FUNCTION", "texture")
30
31GPU_SHADER_CREATE_INFO(compositor_scale_variable_bicubic)
32ADDITIONAL_INFO(compositor_scale_variable_shared)
33DEFINE_VALUE("SAMPLER_FUNCTION", "texture_bicubic")
@ SFLOAT_16_16_16_16
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define SAMPLER(slot, type, name)
#define ADDITIONAL_INFO(info_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
SamplerBase< float, 2 > sampler2D