Blender  V3.3
overlay_antialiasing_info.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
4 
5 GPU_SHADER_CREATE_INFO(overlay_antialiasing)
6  .do_static_compilation(true)
7  .sampler(0, ImageType::DEPTH_2D, "depthTex")
8  .sampler(1, ImageType::FLOAT_2D, "colorTex")
9  .sampler(2, ImageType::FLOAT_2D, "lineTex")
10  .push_constant(Type::BOOL, "doSmoothLines")
11  .fragment_out(0, Type::VEC4, "fragColor")
12  .fragment_source("overlay_antialiasing_frag.glsl")
13  .additional_info("draw_fullscreen", "draw_globals");
14 
15 GPU_SHADER_CREATE_INFO(overlay_xray_fade)
16  .do_static_compilation(true)
17  .sampler(0, ImageType::DEPTH_2D, "depthTex")
18  .sampler(1, ImageType::DEPTH_2D, "xrayDepthTex")
19  .push_constant(Type::FLOAT, "opacity")
20  .fragment_out(0, Type::VEC4, "fragColor")
21  .fragment_source("overlay_xray_fade_frag.glsl")
22  .additional_info("draw_fullscreen");
#define GPU_SHADER_CREATE_INFO(_info)
@ FLOAT