Blender  V3.3
gpu_shader_2D_area_borders_info.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2022 Blender Foundation. All rights reserved. */
3 
9 
10 GPU_SHADER_INTERFACE_INFO(smooth_uv_iface, "").smooth(Type::VEC2, "uv");
11 
12 GPU_SHADER_CREATE_INFO(gpu_shader_2D_area_borders)
13  .vertex_in(0, Type::VEC2, "pos")
14  .vertex_out(smooth_uv_iface)
15  .fragment_out(0, Type::VEC4, "fragColor")
16  .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
17  .push_constant(Type::VEC4, "rect")
18  .push_constant(Type::VEC4, "color")
19  .push_constant(Type::FLOAT, "scale")
20  .push_constant(Type::INT, "cornerLen")
21  .vertex_source("gpu_shader_2D_area_borders_vert.glsl")
22  .fragment_source("gpu_shader_2D_area_borders_frag.glsl")
23  .do_static_compilation(true);
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)
@ FLOAT