Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* 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
|