Mass rename create info function to use the new macros. This allows to define resources in C++ inside IDEs' precompilation system for linting purpose. This applies the following script and format afterwards: https://projects.blender.org/blender/blender/pulls/128602#issuecomment-1310597 Rel #127983 Pull Request: https://projects.blender.org/blender/blender/pulls/128602
20 lines
471 B
C++
20 lines
471 B
C++
/* SPDX-FileCopyrightText: 2022 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "gpu_shader_create_info.hh"
|
|
|
|
GPU_SHADER_CREATE_INFO(gpu_index_load)
|
|
PUSH_CONSTANT(BOOL, gpu_index_no_buffer)
|
|
PUSH_CONSTANT(BOOL, gpu_index_16bit)
|
|
PUSH_CONSTANT(INT, gpu_index_base_index)
|
|
STORAGE_BUF_FREQ(GPU_SSBO_INDEX_BUF_SLOT, READ, uint, gpu_index_buf[], GEOMETRY)
|
|
DEFINE("GPU_INDEX_LOAD")
|
|
GPU_SHADER_CREATE_END()
|