Skip to content

Commit cafcda9

Browse files
M2-TEjpr42
authored andcommitted
Added licenses and used included headers in minimal examples
Co-authored-by: jpr42 <109434725+jpr42@users.noreply.github.com>
1 parent 2b1e9e7 commit cafcda9

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

tests/integration/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ target_link_libraries(vk_hpp PRIVATE Vulkan::Headers)
8686
# vulkan.cppm
8787
if (VULKAN_HEADERS_ENABLE_MODULE)
8888
add_library(vk_hpp_module MODULE ../vk_hpp_module.cpp)
89-
target_compile_features(vk_hpp_module PUBLIC cxx_std_20)
9089
set_target_properties(vk_hpp_module PROPERTIES CXX_SCAN_FOR_MODULES ON)
9190
target_link_libraries(vk_hpp_module PRIVATE Vulkan::HppModule)
9291
endif()

tests/vk_hpp.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
/*
2+
* Copyright 2025 The Khronos Group Inc.
3+
* Copyright 2025 Valve Corporation
4+
* Copyright 2025 LunarG, Inc.
5+
*
6+
* SPDX-License-Identifier: Apache-2.0
7+
*/
18
#include <vulkan/vulkan.hpp>
29

3-
int square(int i)
10+
int header_version()
411
{
5-
return i * i;
12+
return VK_HEADER_VERSION;
613
}

tests/vk_hpp_module.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
/*
2+
* Copyright 2025 The Khronos Group Inc.
3+
* Copyright 2025 Valve Corporation
4+
* Copyright 2025 LunarG, Inc.
5+
*
6+
* SPDX-License-Identifier: Apache-2.0
7+
*/
18
import vulkan_hpp;
29

3-
int square(int i)
10+
int header_version()
411
{
5-
return i * i;
12+
return VK_HEADER_VERSION;
613
}

0 commit comments

Comments
 (0)