Blender V4.5
gpu_shader_2D_image_info.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_glsl_cpp_stubs.hh"
12
13# include "GPU_shader_shared.hh"
14#endif
15
16#include "gpu_interface_info.hh"
18
19GPU_SHADER_CREATE_INFO(gpu_shader_2D_image_common)
21VERTEX_IN(1, float2, texCoord)
22VERTEX_OUT(smooth_tex_coord_interp_iface)
23FRAGMENT_OUT(0, float4, fragColor)
24PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
25SAMPLER(0, sampler2D, image)
26VERTEX_SOURCE("gpu_shader_2D_image_vert.glsl")
uint pos
VecBase< float, 4 > float4
MatBase< 4, 4 > float4x4
SamplerBase< float, 2 > sampler2D
#define VERTEX_OUT(stage_interface)
#define SAMPLER(slot, type, name)
#define PUSH_CONSTANT(type, name)
#define FRAGMENT_OUT(slot, type, name)
#define GPU_SHADER_CREATE_INFO(_info)
#define VERTEX_SOURCE(filename)
#define VERTEX_IN(slot, type, name)
#define GPU_SHADER_CREATE_END()