Blender V5.3
compositor_relative_to_pixel_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 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_relative_to_pixel_float)
13LOCAL_GROUP_SIZE(16, 16)
14PUSH_CONSTANT(float, reference_size)
15SAMPLER(0, sampler2D, input_tx)
16IMAGE(0, SFLOAT_16, write, image2D, output_img)
17COMPUTE_SOURCE("compositor_relative_to_pixel_float.glsl")
20
21GPU_SHADER_CREATE_INFO(compositor_relative_to_pixel_float_per_dimension)
22LOCAL_GROUP_SIZE(16, 16)
23PUSH_CONSTANT(float2, reference_size)
24SAMPLER(0, sampler2D, input_tx)
25IMAGE(0, SFLOAT_16_16, write, image2D, output_img)
26COMPUTE_SOURCE("compositor_relative_to_pixel_float_per_dimension.glsl")
29
30GPU_SHADER_CREATE_INFO(compositor_relative_to_pixel_vector)
31LOCAL_GROUP_SIZE(16, 16)
32PUSH_CONSTANT(float2, reference_size)
33SAMPLER(0, sampler2D, input_tx)
34IMAGE(0, SFLOAT_16_16, write, image2D, output_img)
35COMPUTE_SOURCE("compositor_relative_to_pixel_vector.glsl")
#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