Added licenses and used included headers in minimal examples
Co-authored-by: jpr42 <109434725+jpr42@users.noreply.github.com>
This commit is contained in:
parent
2b1e9e7409
commit
cafcda9360
3 changed files with 18 additions and 5 deletions
|
|
@ -86,7 +86,6 @@ target_link_libraries(vk_hpp PRIVATE Vulkan::Headers)
|
||||||
# vulkan.cppm
|
# vulkan.cppm
|
||||||
if (VULKAN_HEADERS_ENABLE_MODULE)
|
if (VULKAN_HEADERS_ENABLE_MODULE)
|
||||||
add_library(vk_hpp_module MODULE ../vk_hpp_module.cpp)
|
add_library(vk_hpp_module MODULE ../vk_hpp_module.cpp)
|
||||||
target_compile_features(vk_hpp_module PUBLIC cxx_std_20)
|
|
||||||
set_target_properties(vk_hpp_module PROPERTIES CXX_SCAN_FOR_MODULES ON)
|
set_target_properties(vk_hpp_module PROPERTIES CXX_SCAN_FOR_MODULES ON)
|
||||||
target_link_libraries(vk_hpp_module PRIVATE Vulkan::HppModule)
|
target_link_libraries(vk_hpp_module PRIVATE Vulkan::HppModule)
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2025 The Khronos Group Inc.
|
||||||
|
* Copyright 2025 Valve Corporation
|
||||||
|
* Copyright 2025 LunarG, Inc.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
#include <vulkan/vulkan.hpp>
|
#include <vulkan/vulkan.hpp>
|
||||||
|
|
||||||
int square(int i)
|
int header_version()
|
||||||
{
|
{
|
||||||
return i * i;
|
return VK_HEADER_VERSION;
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2025 The Khronos Group Inc.
|
||||||
|
* Copyright 2025 Valve Corporation
|
||||||
|
* Copyright 2025 LunarG, Inc.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
import vulkan_hpp;
|
import vulkan_hpp;
|
||||||
|
|
||||||
int square(int i)
|
int header_version()
|
||||||
{
|
{
|
||||||
return i * i;
|
return VK_HEADER_VERSION;
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue