Blender V5.3
gpu_index_load_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#pragma once
10
11#ifdef GPU_SHADER
12# pragma once
13# include "gpu_shader_compat.hh"
14
15# include "GPU_shader_shared.hh"
16#endif
17
18#ifdef GLSL_CPP_STUBS
19# define GPU_INDEX_LOAD
20#endif
21
23
24GPU_SHADER_CREATE_INFO(gpu_index_buffer_load)
25PUSH_CONSTANT(bool, gpu_index_no_buffer)
26PUSH_CONSTANT(bool, gpu_index_16bit)
27PUSH_CONSTANT(int, gpu_index_base_index)
28STORAGE_BUF_FREQ(GPU_SSBO_INDEX_BUF_SLOT, read, uint, gpu_index_buf[], GEOMETRY)
29DEFINE("GPU_INDEX_LOAD")
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define GPU_SSBO_INDEX_BUF_SLOT
#define STORAGE_BUF_FREQ(slot, qualifiers, type_name, name, freq)
#define PUSH_CONSTANT(type, name)
#define DEFINE(name)