Add REUSE to CI

Ensures proper copyright for the repo
This commit is contained in:
Juan Ramos 2023-07-25 15:52:56 -06:00 committed by Juan Ramos
parent 70bbd3c8ac
commit 93ceaff579
43 changed files with 291 additions and 571 deletions

View file

@ -1,3 +1,9 @@
# Copyright 2023 The Khronos Group Inc.
# Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
#
# SPDX-License-Identifier: Apache-2.0
--- ---
# Use defaults from the Google style with the following exceptions: # Use defaults from the Google style with the following exceptions:
BasedOnStyle: Google BasedOnStyle: Google

View file

@ -1,19 +1,10 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Vulkan Utility Library (Build/Tests) name: ci
on: on:
push: push:
@ -74,3 +65,10 @@ jobs:
-G "Ninja" -G "Ninja"
- name: Build - name: Build
run: cmake --build build run: cmake --build build
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1

7
.gitignore vendored
View file

@ -1,4 +1,9 @@
# Python cache # Copyright 2023 The Khronos Group Inc.
# Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
#
# SPDX-License-Identifier: Apache-2.0
__pycache__ __pycache__
*.pyc *.pyc
build build

8
.reuse/dep5 Normal file
View file

@ -0,0 +1,8 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Vulkan Utility Libraries
Source: https://github.com/KhronosGroup/Vulkan-Utility-Libraries
# These files are routinely updated from another repo
Files: scripts/known_good.json scripts/update_deps.py scripts/CMakeLists.txt
Copyright: 2023 The Khronos Group Inc.
License: Apache-2.0

View file

@ -1,3 +1,11 @@
<!--
Copyright 2023 The Khronos Group Inc.
Copyright 2023 Valve Corporation
Copyright 2023 LunarG, Inc.
SPDX-License-Identifier: Apache-2.0
-->
# Build Instructions # Build Instructions
This document contains the instructions for building this repository on Linux, macOS and Windows. This document contains the instructions for building this repository on Linux, macOS and Windows.

View file

@ -1,17 +1,8 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.17.2) cmake_minimum_required(VERSION 3.17.2)
project(VUL LANGUAGES CXX) project(VUL LANGUAGES CXX)

View file

@ -1 +1,9 @@
<!--
Copyright 2023 The Khronos Group Inc.
Copyright 2023 Valve Corporation
Copyright 2023 LunarG, Inc.
SPDX-License-Identifier: Apache-2.0
-->
A reminder that this issue tracker is managed by the Khronos Group. Interactions here should follow the Khronos Code of Conduct (https://www.khronos.org/developers/code-of-conduct), which prohibits aggressive or derogatory language. Please keep the discussion friendly and civil. A reminder that this issue tracker is managed by the Khronos Group. Interactions here should follow the Khronos Code of Conduct (https://www.khronos.org/developers/code-of-conduct), which prohibits aggressive or derogatory language. Please keep the discussion friendly and civil.

11
LICENSE.md Normal file
View file

@ -0,0 +1,11 @@
<!--
Copyright 2023 The Khronos Group Inc.
Copyright 2023 Valve Corporation
Copyright 2023 LunarG, Inc.
SPDX-License-Identifier: Apache-2.0
-->
Files in this repository fall under the `Apache-2.0` license.
Full license text of these licenses is available at https://opensource.org/licenses/Apache-2.0

View file

@ -1 +1,9 @@
<!--
Copyright 2023 The Khronos Group Inc.
Copyright 2023 Valve Corporation
Copyright 2023 LunarG, Inc.
SPDX-License-Identifier: Apache-2.0
-->
# Vulkan-Utility-Libraries # Vulkan-Utility-Libraries

View file

@ -1,3 +1,11 @@
<!--
Copyright 2023 The Khronos Group Inc.
Copyright 2023 Valve Corporation
Copyright 2023 LunarG, Inc.
SPDX-License-Identifier: Apache-2.0
-->
# How to generate the code # How to generate the code
- Linux: - Linux:

View file

@ -1 +1,9 @@
<!--
Copyright 2023 The Khronos Group Inc.
Copyright 2023 Valve Corporation
Copyright 2023 LunarG, Inc.
SPDX-License-Identifier: Apache-2.0
-->
# Vulkan-Layer-Settings library # Vulkan-Layer-Settings library

View file

@ -1,17 +1,8 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
target_include_directories(VulkanLayerSettings PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) target_include_directories(VulkanLayerSettings PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_sources(VulkanLayerSettings PRIVATE target_sources(VulkanLayerSettings PRIVATE

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 The Khronos Group Inc. // Copyright 2023 Valve Corporation
* Copyright (c) 2023 Valve Corporation // Copyright 2023 LunarG, Inc.
* Copyright (c) 2023 LunarG, Inc. //
* // SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); //
* you may not use this file except in compliance with the License. // Author(s):
* You may obtain a copy of the License at // - Christophe Riccio <christophe@lunarg.com>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#pragma once #pragma once

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 The Khronos Group Inc. // Copyright 2023 Valve Corporation
* Copyright (c) 2023 Valve Corporation // Copyright 2023 LunarG, Inc.
* Copyright (c) 2023 LunarG, Inc. //
* // SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); //
* you may not use this file except in compliance with the License. // Author(s):
* You may obtain a copy of the License at // - Christophe Riccio <christophe@lunarg.com>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#pragma once #pragma once

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 The Khronos Group Inc. // Copyright 2023 Valve Corporation
* Copyright (c) 2023 Valve Corporation // Copyright 2023 LunarG, Inc.
* Copyright (c) 2023 LunarG, Inc. //
* // SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); //
* you may not use this file except in compliance with the License. // Author(s):
* You may obtain a copy of the License at // - Christophe Riccio <christophe@lunarg.com>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#pragma once #pragma once

View file

@ -1,24 +1,11 @@
// *** THIS FILE IS GENERATED - DO NOT EDIT *** // *** THIS FILE IS GENERATED - DO NOT EDIT ***
// See enum_string_helper_generator.py for modifications // See enum_string_helper_generator.py for modifications
/*************************************************************************** // Copyright 2023 The Khronos Group Inc.
* // Copyright 2023 Valve Corporation
* Copyright (c) 2015-2023 The Khronos Group Inc. // Copyright 2023 LunarG, Inc.
* Copyright (c) 2015-2023 Valve Corporation // Copyright 2023 Google Inc.
* Copyright (c) 2015-2023 LunarG, Inc. //
* Copyright (c) 2015-2023 Google Inc. // SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
****************************************************************************/
// NOLINTBEGIN // NOLINTBEGIN
#pragma once #pragma once
#include <string> #include <string>

View file

@ -1,18 +1,9 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import argparse import argparse
import os import os

View file

@ -1,20 +1,11 @@
#!/usr/bin/python3 -i #!/usr/bin/python3 -i
# #
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright (c) 2023 RasterGrid Kft. # Copyright 2023 LunarG, Inc.
# Copyright 2023 RasterGrid Kft.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from generators.vulkan_object import (VulkanObject, from generators.vulkan_object import (VulkanObject,
Extension, Version, Handle, Param, Queues, CommandScope, Command, Extension, Version, Handle, Param, Queues, CommandScope, Command,

View file

@ -1,21 +1,10 @@
#!/usr/bin/python3 -i #!/usr/bin/python3 -i
# Copyright 2023 The Khronos Group Inc.
# Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Copyright (c) 2015-2023 The Khronos Group Inc. # SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2015-2023 Valve Corporation
# Copyright (c) 2015-2023 LunarG, Inc.
# Copyright (c) 2015-2023 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os import os
from generators.base_generator import BaseGenerator from generators.base_generator import BaseGenerator
@ -29,25 +18,12 @@ class DispatchTableHelperOutputGenerator(BaseGenerator):
out = [] out = []
out.append(f'''// *** THIS FILE IS GENERATED - DO NOT EDIT *** out.append(f'''// *** THIS FILE IS GENERATED - DO NOT EDIT ***
// See {os.path.basename(__file__)} for modifications // See {os.path.basename(__file__)} for modifications
/*************************************************************************** // Copyright 2023 The Khronos Group Inc.
* // Copyright 2023 Valve Corporation
* Copyright (c) 2015-2023 The Khronos Group Inc. // Copyright 2023 LunarG, Inc.
* Copyright (c) 2015-2023 Valve Corporation //
* Copyright (c) 2015-2023 LunarG, Inc. // SPDX-License-Identifier: Apache-2.0
* Copyright (c) 2015-2023 Google Inc. \n''')
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
****************************************************************************/\n''')
out.append('// NOLINTBEGIN') # Wrap for clang-tidy to ignore out.append('// NOLINTBEGIN') # Wrap for clang-tidy to ignore
out.append(''' out.append('''

View file

@ -1,22 +1,10 @@
#!/usr/bin/python3 -i #!/usr/bin/python3 -i
# #
# Copyright (c) 2015-2023 The Khronos Group Inc. # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2015-2023 Valve Corporation # Copyright 2023 Valve Corporation
# Copyright (c) 2015-2023 LunarG, Inc. # Copyright 2023 LunarG, Inc.
# Copyright (c) 2015-2023 Google Inc.
# Copyright (c) 2023-2023 RasterGrid Kft.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os import os
from generators.base_generator import BaseGenerator from generators.base_generator import BaseGenerator
@ -29,25 +17,11 @@ class EnumStringHelperOutputGenerator(BaseGenerator):
out = [] out = []
out.append(f'''// *** THIS FILE IS GENERATED - DO NOT EDIT *** out.append(f'''// *** THIS FILE IS GENERATED - DO NOT EDIT ***
// See {os.path.basename(__file__)} for modifications // See {os.path.basename(__file__)} for modifications
/*************************************************************************** // Copyright 2023 The Khronos Group Inc.
* // Copyright 2023 Valve Corporation
* Copyright (c) 2015-2023 The Khronos Group Inc. // Copyright 2023 LunarG, Inc.
* Copyright (c) 2015-2023 Valve Corporation //
* Copyright (c) 2015-2023 LunarG, Inc. // SPDX-License-Identifier: Apache-2.0
* Copyright (c) 2015-2023 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
****************************************************************************/
''') ''')
out.append('// NOLINTBEGIN') # Wrap for clang-tidy to ignore out.append('// NOLINTBEGIN') # Wrap for clang-tidy to ignore

View file

@ -1,21 +1,10 @@
#!/usr/bin/python3 -i #!/usr/bin/python3 -i
# #
# Copyright (c) 2015-2023 The Khronos Group Inc. # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2015-2023 Valve Corporation # Copyright 2023 Valve Corporation
# Copyright (c) 2015-2023 LunarG, Inc. # Copyright 2023 LunarG, Inc.
# Copyright (c) 2015-2023 Google Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os import os
from generators.base_generator import BaseGenerator from generators.base_generator import BaseGenerator
@ -28,25 +17,12 @@ class LayerDispatchTableOutputGenerator(BaseGenerator):
out = [] out = []
out.append(f'''// *** THIS FILE IS GENERATED - DO NOT EDIT *** out.append(f'''// *** THIS FILE IS GENERATED - DO NOT EDIT ***
// See {os.path.basename(__file__)} for modifications // See {os.path.basename(__file__)} for modifications
/*************************************************************************** // Copyright 2023 The Khronos Group Inc.
* // Copyright 2023 Valve Corporation
* Copyright (c) 2015-2023 The Khronos Group Inc. // Copyright 2023 LunarG, Inc.
* Copyright (c) 2015-2023 Valve Corporation //
* Copyright (c) 2015-2023 LunarG, Inc. // SPDX-License-Identifier: Apache-2.0
* Copyright (c) 2015-2023 Google Inc. \n''')
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
****************************************************************************/\n''')
out.append('// NOLINTBEGIN') # Wrap for clang-tidy to ignore out.append('// NOLINTBEGIN') # Wrap for clang-tidy to ignore
out.append(''' out.append('''

View file

@ -1,19 +1,10 @@
#!/usr/bin/python3 -i #!/usr/bin/python3 -i
# #
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from dataclasses import dataclass, field from dataclasses import dataclass, field
from enum import IntFlag, Enum, auto from enum import IntFlag, Enum, auto

View file

@ -1,16 +1,6 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
add_subdirectory(layer) add_subdirectory(layer)

View file

@ -1,18 +1,8 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set(CMAKE_FOLDER "${CMAKE_FOLDER}/VulkanLayerSettings") set(CMAKE_FOLDER "${CMAKE_FOLDER}/VulkanLayerSettings")
add_library(VulkanLayerSettings STATIC) add_library(VulkanLayerSettings STATIC)

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include "layer_settings_manager.hpp" #include "layer_settings_manager.hpp"
#include "layer_settings_util.hpp" #include "layer_settings_util.hpp"

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#pragma once #pragma once
#include "vulkan/layer/vk_layer_settings.h" #include "vulkan/layer/vk_layer_settings.h"

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include "layer_settings_util.hpp" #include "layer_settings_util.hpp"
#include <sstream> #include <sstream>

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#pragma once #pragma once
#include "vulkan/layer/vk_layer_settings.h" #include "vulkan/layer/vk_layer_settings.h"

View file

@ -1,25 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 The Khronos Group Inc. // Copyright 2023 Valve Corporation
* Copyright (c) 2023 Valve Corporation // Copyright 2023 LunarG, Inc.
* Copyright (c) 2023 LunarG, Inc. //
* // SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); //
* you may not use this file except in compliance with the License. // Author(s):
* You may obtain a copy of the License at // - Christophe Riccio <christophe@lunarg.com>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
* - Mark Lobodzinski <mark@lunarg.com>
*/
#include "vulkan/layer/vk_layer_settings.h" #include "vulkan/layer/vk_layer_settings.h"
#include "layer_settings_util.hpp" #include "layer_settings_util.hpp"
#include "layer_settings_manager.hpp" #include "layer_settings_manager.hpp"

View file

@ -1,24 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023 The Khronos Group Inc. // Copyright 2023 Valve Corporation
* Copyright (c) 2023 Valve Corporation // Copyright 2023 LunarG, Inc.
* Copyright (c) 2023 LunarG, Inc. //
* // SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); //
* you may not use this file except in compliance with the License. // Author(s):
* You may obtain a copy of the License at // - Christophe Riccio <christophe@lunarg.com>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include "vulkan/layer/vk_layer_settings.hpp" #include "vulkan/layer/vk_layer_settings.hpp"
void vlGetLayerSettingValue(VlLayerSettingSet layerSettingSet, const char *pSettingName, bool &settingValue) { void vlGetLayerSettingValue(VlLayerSettingSet layerSettingSet, const char *pSettingName, bool &settingValue) {

View file

@ -1,17 +1,7 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
add_subdirectory(layer) add_subdirectory(layer)
add_subdirectory(generated) add_subdirectory(generated)

View file

@ -1,18 +1,8 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.17) cmake_minimum_required(VERSION 3.17)
project(TEST_ADD_SUBDIRECTORY LANGUAGES C) project(TEST_ADD_SUBDIRECTORY LANGUAGES C)

View file

@ -1,3 +1,8 @@
// Copyright 2023 The Khronos Group Inc.
// Copyright 2023 Valve Corporation
// Copyright 2023 LunarG, Inc.
//
// SPDX-License-Identifier: Apache-2.0
#include <vulkan/layer/vk_layer_settings.h> #include <vulkan/layer/vk_layer_settings.h>
VkBool32 foobar() { VkBool32 foobar() {

View file

@ -1,18 +1,8 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.17) cmake_minimum_required(VERSION 3.17)
project(TEST_FIND_PACKAGE LANGUAGES C) project(TEST_FIND_PACKAGE LANGUAGES C)

View file

@ -1,4 +1,8 @@
# Copyright 2023 The Khronos Group Inc.
# Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
#
# SPDX-License-Identifier: Apache-2.0
if(${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") if(${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
add_compile_options(-Wpedantic -Wall -Wextra -Werror) add_compile_options(-Wpedantic -Wall -Wextra -Werror)
endif() endif()

View file

@ -1,3 +1,8 @@
// Copyright 2023 The Khronos Group Inc.
// Copyright 2023 Valve Corporation
// Copyright 2023 LunarG, Inc.
//
// SPDX-License-Identifier: Apache-2.0
#include <vulkan/vk_enum_string_helper.h> #include <vulkan/vk_enum_string_helper.h>
// TODO: Add actual testing // TODO: Add actual testing

View file

@ -1,17 +1,8 @@
# Copyright (c) 2023 Valve Corporation # Copyright 2023 The Khronos Group Inc.
# Copyright (c) 2023 LunarG, Inc. # Copyright 2023 Valve Corporation
# Copyright 2023 LunarG, Inc.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # SPDX-License-Identifier: Apache-2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set(CMAKE_FOLDER "${CMAKE_FOLDER}/VulkanLayerSettings/tests") set(CMAKE_FOLDER "${CMAKE_FOLDER}/VulkanLayerSettings/tests")
find_package(GTest REQUIRED CONFIG) find_package(GTest REQUIRED CONFIG)

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023-2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023-2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "vulkan/layer/vk_layer_settings.h" #include "vulkan/layer/vk_layer_settings.h"

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023-2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023-2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "vulkan/layer/vk_layer_settings.hpp" #include "vulkan/layer/vk_layer_settings.hpp"

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023-2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023-2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "vulkan/layer/vk_layer_settings.h" #include "vulkan/layer/vk_layer_settings.h"

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023-2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023-2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "vulkan/layer/vk_layer_settings.h" #include "vulkan/layer/vk_layer_settings.h"

View file

@ -1,23 +1,11 @@
/* // Copyright 2023 The Khronos Group Inc.
* Copyright (c) 2023-2023 Valve Corporation // Copyright 2023 Valve Corporation
* Copyright (c) 2023-2023 LunarG, Inc. // Copyright 2023 LunarG, Inc.
* //
* Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: Apache-2.0
* you may not use this file except in compliance with the License. //
* You may obtain a copy of the License at // Author(s):
* // - Christophe Riccio <christophe@lunarg.com>
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Authors:
* - Christophe Riccio <christophe@lunarg.com>
*/
#include "layer_settings_util.hpp" #include "layer_settings_util.hpp"
#include <gtest/gtest.h> #include <gtest/gtest.h>