Blender V4.3
gpu_shader_3D_depth_only_info.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11
12GPU_SHADER_CREATE_INFO(gpu_shader_3D_depth_only)
13 .vertex_in(0, Type::VEC3, "pos")
14 .vertex_out(flat_color_iface)
15 .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
16 .vertex_source("gpu_shader_3D_vert.glsl")
17 .fragment_source("gpu_shader_depth_only_frag.glsl")
18 .do_static_compilation(true);
19
20GPU_SHADER_CREATE_INFO(gpu_shader_3D_depth_only_clipped)
21 .additional_info("gpu_shader_3D_depth_only")
22 .additional_info("gpu_clip_planes")
23 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)