Blender V4.3
gpu_shader_index_info.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
11
12GPU_SHADER_CREATE_INFO(gpu_shader_index_2d_array_points)
13 .local_group_size(16, 16, 1)
14 .push_constant(Type::INT, "elements_per_curve")
15 .push_constant(Type::INT, "ncurves")
16 .storage_buf(0, Qualifier::WRITE, "uint", "out_indices[]")
17 .compute_source("gpu_shader_index_2d_array_points.glsl")
18 .do_static_compilation(true);
19
20GPU_SHADER_CREATE_INFO(gpu_shader_index_2d_array_lines)
21 .local_group_size(16, 16, 1)
22 .push_constant(Type::INT, "elements_per_curve")
23 .push_constant(Type::INT, "ncurves")
24 .storage_buf(0, Qualifier::WRITE, "uint", "out_indices[]")
25 .compute_source("gpu_shader_index_2d_array_lines.glsl")
26 .do_static_compilation(true);
27
28GPU_SHADER_CREATE_INFO(gpu_shader_index_2d_array_tris)
29 .local_group_size(16, 16, 1)
30 .push_constant(Type::INT, "elements_per_curve")
31 .push_constant(Type::INT, "ncurves")
32 .storage_buf(0, Qualifier::WRITE, "uint", "out_indices[]")
33 .compute_source("gpu_shader_index_2d_array_tris.glsl")
34 .do_static_compilation(true);
#define GPU_SHADER_CREATE_INFO(_info)