Blender V5.0
gpu_shader_3D_flat_color_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"
16#endif
17
20
21GPU_SHADER_CREATE_INFO(gpu_shader_3D_flat_color)
23VERTEX_IN(1, float4, color)
24VERTEX_OUT(flat_color_iface)
25FRAGMENT_OUT(0, float4, fragColor)
26PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
27PUSH_CONSTANT(float, size)
28VERTEX_SOURCE("gpu_shader_3D_flat_color_vert.glsl")
29FRAGMENT_SOURCE("gpu_shader_flat_color_frag.glsl")
30ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
33
34GPU_SHADER_CREATE_INFO(gpu_shader_3D_flat_color_clipped)
35ADDITIONAL_INFO(gpu_shader_3D_flat_color)
36ADDITIONAL_INFO(gpu_clip_planes)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
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 FRAGMENT_OUT(slot, type, name)
#define VERTEX_SOURCE(filename)
#define VERTEX_IN(slot, type, name)
#define DO_STATIC_COMPILATION()
MatBase< 4, 4 > float4x4