Blender V5.0
gpu_shader_index_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"
14#endif
15
18
19GPU_SHADER_CREATE_INFO(gpu_shader_index_2d_array_points)
20LOCAL_GROUP_SIZE(16, 16, 1)
21PUSH_CONSTANT(int, elements_per_curve)
22PUSH_CONSTANT(int, ncurves)
23STORAGE_BUF(0, write, uint, out_indices[])
24COMPUTE_SOURCE("gpu_shader_index_2d_array_points.glsl")
27
28GPU_SHADER_CREATE_INFO(gpu_shader_index_2d_array_lines)
29LOCAL_GROUP_SIZE(16, 16, 1)
30PUSH_CONSTANT(int, elements_per_curve)
31PUSH_CONSTANT(int, ncurves)
32STORAGE_BUF(0, write, uint, out_indices[])
33COMPUTE_SOURCE("gpu_shader_index_2d_array_lines.glsl")
36
37GPU_SHADER_CREATE_INFO(gpu_shader_index_2d_array_tris)
38LOCAL_GROUP_SIZE(16, 16, 1)
39PUSH_CONSTANT(int, elements_per_curve)
40PUSH_CONSTANT(int, ncurves)
41STORAGE_BUF(0, write, uint, out_indices[])
42COMPUTE_SOURCE("gpu_shader_index_2d_array_tris.glsl")
unsigned int uint
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define PUSH_CONSTANT(type, name)
#define STORAGE_BUF(slot, qualifiers, type_name, name)
#define LOCAL_GROUP_SIZE(...)
#define COMPUTE_SOURCE(filename)
#define DO_STATIC_COMPILATION()