Blender  V3.3
gpu_shader_2D_flat_color_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 #include "gpu_interface_info.hh"
11 
12 GPU_SHADER_CREATE_INFO(gpu_shader_2D_flat_color)
13  .vertex_in(0, Type::VEC2, "pos")
14  .vertex_in(1, Type::VEC4, "color")
15  .vertex_out(flat_color_iface)
16  .fragment_out(0, Type::VEC4, "fragColor")
17  .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
18  .vertex_source("gpu_shader_2D_flat_color_vert.glsl")
19  .fragment_source("gpu_shader_flat_color_frag.glsl")
20  .additional_info("gpu_srgb_to_framebuffer_space")
21  .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)