Blender  V3.3
gpu_shader_3D_depth_only_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_3D_depth_only)
12  .vertex_in(0, Type::VEC3, "pos")
13  .vertex_out(flat_color_iface)
14  .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
15  .vertex_source("gpu_shader_3D_vert.glsl")
16  .fragment_source("gpu_shader_depth_only_frag.glsl")
17  .do_static_compilation(true);
18 
19 GPU_SHADER_CREATE_INFO(gpu_shader_3D_depth_only_clipped)
20  .additional_info("gpu_shader_3D_depth_only")
21  .additional_info("gpu_clip_planes")
22  .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)