Blender V4.3
overlay_viewer_attribute_info.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
6
7GPU_SHADER_INTERFACE_INFO(overlay_viewer_attribute_iface, "").smooth(Type::VEC4, "finalColor");
8
9GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_common).push_constant(Type::FLOAT, "opacity");
10
11GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_mesh)
12 .do_static_compilation(true)
13 .vertex_source("overlay_viewer_attribute_mesh_vert.glsl")
14 .fragment_source("overlay_viewer_attribute_frag.glsl")
15 .fragment_out(0, Type::VEC4, "out_color")
16 .fragment_out(1, Type::VEC4, "lineOutput")
17 .vertex_in(0, Type::VEC3, "pos")
18 .vertex_in(1, Type::VEC4, "attribute_value")
19 .vertex_out(overlay_viewer_attribute_iface)
20 .additional_info("overlay_viewer_attribute_common", "draw_mesh");
21
22GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_mesh_clipped)
23 .do_static_compilation(true)
24 .additional_info("overlay_viewer_attribute_mesh", "drw_clipped");
25
26GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_pointcloud)
27 .do_static_compilation(true)
28 .vertex_source("overlay_viewer_attribute_pointcloud_vert.glsl")
29 .fragment_source("overlay_viewer_attribute_frag.glsl")
30 .fragment_out(0, Type::VEC4, "out_color")
31 .fragment_out(1, Type::VEC4, "lineOutput")
32 .sampler(3, ImageType::FLOAT_BUFFER, "attribute_tx")
33 .vertex_out(overlay_viewer_attribute_iface)
34 .additional_info("overlay_viewer_attribute_common", "draw_pointcloud");
35
36GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_pointcloud_clipped)
37 .do_static_compilation(true)
38 .additional_info("overlay_viewer_attribute_pointcloud", "drw_clipped");
39
40GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_curve)
41 .do_static_compilation(true)
42 .vertex_source("overlay_viewer_attribute_curve_vert.glsl")
43 .fragment_source("overlay_viewer_attribute_frag.glsl")
44 .fragment_out(0, Type::VEC4, "out_color")
45 .fragment_out(1, Type::VEC4, "lineOutput")
46 .vertex_in(0, Type::VEC3, "pos")
47 .vertex_in(1, Type::VEC4, "attribute_value")
48 .vertex_out(overlay_viewer_attribute_iface)
49 .additional_info("overlay_viewer_attribute_common", "draw_modelmat", "draw_resource_id");
50
51GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_curve_clipped)
52 .do_static_compilation(true)
53 .additional_info("overlay_viewer_attribute_curve", "drw_clipped");
54
55GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_curves)
56 .do_static_compilation(true)
57 .vertex_source("overlay_viewer_attribute_curves_vert.glsl")
58 .fragment_source("overlay_viewer_attribute_frag.glsl")
59 .fragment_out(0, Type::VEC4, "out_color")
60 .fragment_out(1, Type::VEC4, "lineOutput")
61 .sampler(1, ImageType::FLOAT_BUFFER, "color_tx")
62 .push_constant(Type::BOOL, "is_point_domain")
63 .vertex_out(overlay_viewer_attribute_iface)
64 .additional_info("overlay_viewer_attribute_common", "draw_hair");
65
66GPU_SHADER_CREATE_INFO(overlay_viewer_attribute_curves_clipped)
67 .do_static_compilation(true)
68 .additional_info("overlay_viewer_attribute_curves", "drw_clipped");
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)