Blender V4.3
gpu_shader_2D_area_borders_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_INTERFACE_INFO(smooth_uv_iface, "").smooth(Type::VEC2, "uv");
12
13GPU_SHADER_CREATE_INFO(gpu_shader_2D_area_borders)
14 .vertex_in(0, Type::VEC2, "pos")
15 .vertex_out(smooth_uv_iface)
16 .fragment_out(0, Type::VEC4, "fragColor")
17 .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
18 .push_constant(Type::VEC4, "rect")
19 .push_constant(Type::VEC4, "color")
20 .push_constant(Type::FLOAT, "scale")
21 .push_constant(Type::INT, "cornerLen")
22 .vertex_source("gpu_shader_2D_area_borders_vert.glsl")
23 .fragment_source("gpu_shader_2D_area_borders_frag.glsl")
24 .do_static_compilation(true);
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)