Skip to content

Commit 52339af

Browse files
committed
replaced minimal example for modules
1 parent 5a4f3cd commit 52339af

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
-G Ninja
9999
- run: cmake --build ./build
100100
- run: cmake --install build/ --prefix build/install
101-
- run: ctest --output-on-failure -D CMAKE_CXX_COMPILER=${{ matrix.compiler }}
101+
- run: CXX=${{ matrix.compiler }} ctest --output-on-failure
102102
working-directory: build
103103

104104
cmake-windows-modules:

Diff for: tests/vk_hpp_module.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88
import vulkan_hpp;
9+
#include <string>
910

10-
int header_version()
11+
int test_instance()
1112
{
12-
return VK_HEADER_VERSION;
13+
vk::InstanceCreateInfo instanceCreateInfo({}, nullptr);
14+
vk::Instance instance = vk::createInstance(instanceCreateInfo);
15+
instance.destroy();
16+
return 0;
1317
}

0 commit comments

Comments
 (0)