Blender V5.0
gpu_shader_3D_uniform_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
19
20GPU_SHADER_CREATE_INFO(gpu_shader_3D_uniform_color)
22FRAGMENT_OUT(0, float4, fragColor)
23PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
25VERTEX_SOURCE("gpu_shader_3D_vert.glsl")
26FRAGMENT_SOURCE("gpu_shader_uniform_color_frag.glsl")
27ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
30
31GPU_SHADER_CREATE_INFO(gpu_shader_3D_uniform_color_clipped)
32ADDITIONAL_INFO(gpu_shader_3D_uniform_color)
33ADDITIONAL_INFO(gpu_clip_planes)
36
37/* Confusing naming convention. But this is a version with only one local clip plane. */
38GPU_SHADER_CREATE_INFO(gpu_shader_3D_clipped_uniform_color)
40FRAGMENT_OUT(0, float4, fragColor)
41PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
43/* TODO(@fclem): Put those two to one UBO. */
44PUSH_CONSTANT(float4x4, ModelMatrix)
45PUSH_CONSTANT(float4, ClipPlane)
46VERTEX_SOURCE("gpu_shader_3D_clipped_uniform_color_vert.glsl")
47FRAGMENT_SOURCE("gpu_shader_uniform_color_frag.glsl")
48ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
uint pos
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#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