Blender V4.3
gpu_shader_2D_diag_stripes_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
10
11GPU_SHADER_CREATE_INFO(gpu_shader_2D_diag_stripes)
12 .vertex_in(0, Type::VEC2, "pos")
13 .fragment_out(0, Type::VEC4, "fragColor")
14 .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
15 .push_constant(Type::VEC4, "color1")
16 .push_constant(Type::VEC4, "color2")
17 .push_constant(Type::INT, "size1")
18 .push_constant(Type::INT, "size2")
19 .vertex_source("gpu_shader_2D_vert.glsl")
20 .fragment_source("gpu_shader_diag_stripes_frag.glsl")
21 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)