A lot of files were missing copyright field in the header and
the Blender Foundation contributed to them in a sense of bug
fixing and general maintenance.
This change makes it explicit that those files are at least
partially copyrighted by the Blender Foundation.
Note that this does not make it so the Blender Foundation is
the only holder of the copyright in those files, and developers
who do not have a signed contract with the foundation still
hold the copyright as well.
Another aspect of this change is using SPDX format for the
header. We already used it for the license specification,
and now we state it for the copyright as well, following the
FAQ:
https://reuse.software/faq/
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* SPDX-FileCopyrightText: 2023 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/* Global parameters. */
|
|
#define MTL_SSBO_VERTEX_FETCH_MAX_VBOS 6 /* buffer bind 0..5 */
|
|
#define MTL_SSBO_VERTEX_FETCH_IBO_INDEX MTL_SSBO_VERTEX_FETCH_MAX_VBOS
|
|
|
|
/* Add Types as needed (Also need to be added to mtl_shader.h). */
|
|
#define GPU_SHADER_ATTR_TYPE_FLOAT 0
|
|
#define GPU_SHADER_ATTR_TYPE_INT 1
|
|
#define GPU_SHADER_ATTR_TYPE_SHORT 2
|
|
#define GPU_SHADER_ATTR_TYPE_CHAR 3
|
|
#define GPU_SHADER_ATTR_TYPE_VEC2 4
|
|
#define GPU_SHADER_ATTR_TYPE_VEC3 5
|
|
#define GPU_SHADER_ATTR_TYPE_VEC4 6
|
|
#define GPU_SHADER_ATTR_TYPE_UVEC2 7
|
|
#define GPU_SHADER_ATTR_TYPE_UVEC3 8
|
|
#define GPU_SHADER_ATTR_TYPE_UVEC4 9
|
|
#define GPU_SHADER_ATTR_TYPE_IVEC2 10
|
|
#define GPU_SHADER_ATTR_TYPE_IVEC3 11
|
|
#define GPU_SHADER_ATTR_TYPE_IVEC4 12
|
|
#define GPU_SHADER_ATTR_TYPE_MAT3 13
|
|
#define GPU_SHADER_ATTR_TYPE_MAT4 14
|
|
#define GPU_SHADER_ATTR_TYPE_UCHAR_NORM 15
|
|
#define GPU_SHADER_ATTR_TYPE_UCHAR2_NORM 16
|
|
#define GPU_SHADER_ATTR_TYPE_UCHAR3_NORM 17
|
|
#define GPU_SHADER_ATTR_TYPE_UCHAR4_NORM 18
|
|
#define GPU_SHADER_ATTR_TYPE_INT1010102_NORM 19
|
|
#define GPU_SHADER_ATTR_TYPE_SHORT3_NORM 20
|
|
#define GPU_SHADER_ATTR_TYPE_CHAR2 21
|
|
#define GPU_SHADER_ATTR_TYPE_CHAR3 22
|
|
#define GPU_SHADER_ATTR_TYPE_CHAR4 23
|
|
#define GPU_SHADER_ATTR_TYPE_UINT 24
|