Blender V5.0
overlay_antialiasing_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifdef GPU_SHADER
6# pragma once
7# include "gpu_shader_compat.hh"
8
10
12#endif
13
15
16GPU_SHADER_CREATE_INFO(overlay_antialiasing)
18SAMPLER(0, sampler2DDepth, depth_tx)
19SAMPLER(1, sampler2D, color_tx)
20SAMPLER(2, sampler2D, line_tx)
21PUSH_CONSTANT(bool, do_smooth_lines)
22FRAGMENT_OUT(0, float4, frag_color)
23TYPEDEF_SOURCE("overlay_shader_shared.hh")
24FRAGMENT_SOURCE("overlay_antialiasing_frag.glsl")
25ADDITIONAL_INFO(gpu_fullscreen)
26ADDITIONAL_INFO(draw_globals)
28
29GPU_SHADER_CREATE_INFO(overlay_xray_fade)
31SAMPLER(0, sampler2DDepth, depth_tx)
32SAMPLER(1, sampler2DDepth, xray_depth_tx)
33PUSH_CONSTANT(float, opacity)
34FRAGMENT_OUT(0, float4, frag_color)
35FRAGMENT_SOURCE("overlay_xray_fade_frag.glsl")
36ADDITIONAL_INFO(gpu_fullscreen)
37SAMPLER(2, sampler2DDepth, xray_depth_txInfront)
38SAMPLER(3, sampler2DDepth, depth_txInfront)
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define TYPEDEF_SOURCE(filename)
#define SAMPLER(slot, type, name)
#define FRAGMENT_SOURCE(filename)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define FRAGMENT_OUT(slot, type, name)
#define DO_STATIC_COMPILATION()
SamplerBase< float, 2, false, false, false, true > sampler2DDepth
SamplerBase< float, 2 > sampler2D