Blender V5.0
gpu_shader_2D_image_rect_color_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#ifdef GPU_SHADER
10# pragma once
11# include "gpu_shader_compat.hh"
12
13# include "GPU_shader_shared.hh"
14
16#endif
17
20
21GPU_SHADER_CREATE_INFO(gpu_shader_2D_image_rect_color)
22VERTEX_OUT(smooth_tex_coord_interp_iface)
23FRAGMENT_OUT(0, float4, fragColor)
24PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
26PUSH_CONSTANT(float4, rect_icon)
27PUSH_CONSTANT(float4, rect_geom)
28SAMPLER(0, sampler2D, image)
29VERTEX_SOURCE("gpu_shader_2D_image_rect_vert.glsl")
30FRAGMENT_SOURCE("gpu_shader_image_color_frag.glsl")
31COMPILATION_CONSTANT(bool, is_scene_linear_image, false)
32ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define VERTEX_OUT(stage_interface)
#define SAMPLER(slot, type, name)
#define COMPILATION_CONSTANT(type, name, value)
#define FRAGMENT_SOURCE(filename)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define FRAGMENT_OUT(slot, type, name)
#define VERTEX_SOURCE(filename)
#define DO_STATIC_COMPILATION()
MatBase< 4, 4 > float4x4
SamplerBase< float, 2 > sampler2D