Blender V5.0
gpu_shader_3D_point_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# include "gpu_interface_infos.hh"
17#endif
18
20
21GPU_SHADER_CREATE_INFO(gpu_shader_3D_point_varying_size_varying_color)
23VERTEX_IN(1, float4, color)
24VERTEX_IN(2, float, size)
25VERTEX_OUT(smooth_color_iface)
26FRAGMENT_OUT(0, float4, fragColor)
27PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
28VERTEX_SOURCE("gpu_shader_3D_point_varying_size_varying_color_vert.glsl")
29FRAGMENT_SOURCE("gpu_shader_point_varying_color_frag.glsl")
32
33GPU_SHADER_CREATE_INFO(gpu_shader_3D_point_uniform_size_uniform_color_aa)
35VERTEX_OUT(smooth_radii_iface)
36FRAGMENT_OUT(0, float4, fragColor)
37PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
39PUSH_CONSTANT(float, size)
40VERTEX_SOURCE("gpu_shader_3D_point_uniform_size_aa_vert.glsl")
41FRAGMENT_SOURCE("gpu_shader_point_uniform_color_aa_frag.glsl")
42ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
45
46GPU_SHADER_CREATE_INFO(gpu_shader_3D_point_uniform_size_uniform_color_aa_clipped)
47ADDITIONAL_INFO(gpu_shader_3D_point_uniform_size_uniform_color_aa)
48ADDITIONAL_INFO(gpu_clip_planes)
51
52GPU_SHADER_CREATE_INFO(gpu_shader_3D_point_flat_color)
54VERTEX_IN(1, float4, color)
55VERTEX_OUT(flat_color_iface)
56FRAGMENT_OUT(0, float4, fragColor)
57PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
58PUSH_CONSTANT(float, size)
59VERTEX_SOURCE("gpu_shader_3D_point_flat_color_vert.glsl")
60FRAGMENT_SOURCE("gpu_shader_flat_color_frag.glsl")
61ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
64
65GPU_SHADER_CREATE_INFO(gpu_shader_3D_point_uniform_color)
67VERTEX_OUT(flat_color_iface)
68FRAGMENT_OUT(0, float4, fragColor)
69PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
71PUSH_CONSTANT(float, size)
72VERTEX_SOURCE("gpu_shader_3D_point_flat_color_vert.glsl")
73FRAGMENT_SOURCE("gpu_shader_flat_color_frag.glsl")
74ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
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