Blender V4.3
workbench_depth_info.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
6
7GPU_SHADER_CREATE_INFO(workbench_merge_depth)
8 .sampler(0, ImageType::DEPTH_2D, "depth_tx")
9 .fragment_source("workbench_merge_depth_frag.glsl")
10 .additional_info("draw_fullscreen")
11 .depth_write(DepthWrite::ANY)
12 .do_static_compilation(true);
13
14GPU_SHADER_CREATE_INFO(workbench_overlay_depth)
15 .fragment_source("workbench_overlay_depth_frag.glsl")
16 .additional_info("draw_fullscreen")
17 .depth_write(DepthWrite::ANY)
18 .do_static_compilation(true);
19
20GPU_SHADER_CREATE_INFO(workbench_extract_stencil)
21 .fragment_out(0, Type::UINT, "out_stencil_value")
22 .fragment_source("workbench_extract_stencil.glsl")
23 .additional_info("draw_fullscreen")
24 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)