Blender V5.0
gpu_shader_3D_depth_only_infos.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
8
9#ifdef GPU_SHADER
10# pragma once
11# include "gpu_shader_compat.hh"
12
13# include "GPU_shader_shared.hh"
15#endif
16
19
20GPU_SHADER_CREATE_INFO(gpu_shader_3D_depth_only)
22VERTEX_OUT(flat_color_iface)
23PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
24VERTEX_SOURCE("gpu_shader_3D_vert.glsl")
25FRAGMENT_SOURCE("gpu_shader_depth_only_frag.glsl")
28
29GPU_SHADER_CREATE_INFO(gpu_shader_3D_depth_only_clipped)
30ADDITIONAL_INFO(gpu_shader_3D_depth_only)
31ADDITIONAL_INFO(gpu_clip_planes)
uint pos
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define VERTEX_OUT(stage_interface)
#define FRAGMENT_SOURCE(filename)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define VERTEX_SOURCE(filename)
#define VERTEX_IN(slot, type, name)
#define DO_STATIC_COMPILATION()
MatBase< 4, 4 > float4x4