Blender  V3.3
gpu_shader_2D_image_rect_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 
8 #include "gpu_interface_info.hh"
10 
11 GPU_SHADER_CREATE_INFO(gpu_shader_2D_image_rect_color)
12  .vertex_out(smooth_tex_coord_interp_iface)
13  .fragment_out(0, Type::VEC4, "fragColor")
14  .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
15  .push_constant(Type::VEC4, "color")
16  .push_constant(Type::VEC4, "rect_icon")
17  .push_constant(Type::VEC4, "rect_geom")
18  .sampler(0, ImageType::FLOAT_2D, "image")
19  .vertex_source("gpu_shader_2D_image_rect_vert.glsl")
20  .fragment_source("gpu_shader_image_color_frag.glsl")
21  .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)