Blender V4.3
gpu_shader_3D_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
11
12GPU_SHADER_CREATE_INFO(gpu_shader_3D_image_common)
13 .vertex_in(0, Type::VEC3, "pos")
14 .vertex_in(1, Type::VEC2, "texCoord")
15 .vertex_out(smooth_tex_coord_interp_iface)
16 .fragment_out(0, Type::VEC4, "fragColor")
17 .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
18 .sampler(0, ImageType::FLOAT_2D, "image")
19 .vertex_source("gpu_shader_3D_image_vert.glsl");
20
21GPU_SHADER_CREATE_INFO(gpu_shader_3D_image)
22 .additional_info("gpu_shader_3D_image_common")
23 .fragment_source("gpu_shader_image_frag.glsl")
24 .do_static_compilation(true);
25
26GPU_SHADER_CREATE_INFO(gpu_shader_3D_image_color)
27 .additional_info("gpu_shader_3D_image_common")
28 .push_constant(Type::VEC4, "color")
29 .fragment_source("gpu_shader_image_color_frag.glsl")
30 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)