Blender  V3.3
select_id_info.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
4 
5 /* -------------------------------------------------------------------- */
9 GPU_SHADER_INTERFACE_INFO(select_id_iface, "").flat(Type::INT, "id");
10 
11 GPU_SHADER_CREATE_INFO(select_id_flat)
12  .push_constant(Type::FLOAT, "sizeVertex")
13  .push_constant(Type::INT, "offset")
14  .vertex_in(0, Type::VEC3, "pos")
15  .vertex_in(1, Type::INT, "index")
16  .vertex_out(select_id_iface)
17  .fragment_out(0, Type::UINT, "fragColor")
18  .vertex_source("select_id_vert.glsl")
19  .fragment_source("select_id_frag.glsl")
20  .additional_info("draw_modelmat")
21  .do_static_compilation(true);
22 
23 GPU_SHADER_CREATE_INFO(select_id_uniform)
24  .define("UNIFORM_ID")
25  .push_constant(Type::FLOAT, "sizeVertex")
26  .push_constant(Type::INT, "id")
27  .vertex_in(0, Type::VEC3, "pos")
28  .fragment_out(0, Type::UINT, "fragColor")
29  .vertex_source("select_id_vert.glsl")
30  .fragment_source("select_id_frag.glsl")
31  .additional_info("draw_modelmat")
32  .do_static_compilation(true);
33 
34 GPU_SHADER_CREATE_INFO(select_id_flat_clipped)
35  .additional_info("select_id_flat")
36  .additional_info("drw_clipped")
37  .do_static_compilation(true);
38 
39 GPU_SHADER_CREATE_INFO(select_id_uniform_clipped)
40  .additional_info("select_id_uniform")
41  .additional_info("drw_clipped")
42  .do_static_compilation(true);
typedef UINT(API *GHOST_WIN32_GetDpiForWindow)(HWND)
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)
@ FLOAT