License headers: add SPDX copyright entries for '*.msl' files

This commit is contained in:
Campbell Barton 2023-08-19 17:41:14 +10:00
parent add2a656da
commit 04bf0f3eb6
5 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,7 @@
/* SPDX-FileCopyrightText: 2022 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/* MATCHING eGPUTextureType. */
#define GPU_TEXTURE_1D (1 << 0)
#define GPU_TEXTURE_2D (1 << 1)

View File

@ -1,3 +1,7 @@
/* SPDX-FileCopyrightText: 2022 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
using namespace metal;
/* MATCHING eGPUTextureType. */

View File

@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/* SPDX-FileCopyrightText: 2022 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/* Common Metal header to be included in all compiled Metal shaders.
* Both native MSL shaders and GLSL shaders. */

View File

@ -1,4 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/* SPDX-FileCopyrightText: 2022 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** Special header for mapping commonly defined tokens to API-specific variations.
* Where possible, this will adhere closely to base GLSL, where semantics are the same.

View File

@ -94,6 +94,8 @@ def filename_is_c_compat(filename: str) -> bool:
".cu",
# Metal.
".metal",
# Metal Shading Language.
".msl",
# Open Shading Language.
".osl",
# Cycles uses this extension.