replaced minimal example for modules

This commit is contained in:
Jan Kuhlmann 2025-03-21 10:52:50 +01:00 committed by Charles Giessen
parent 24ce771ec1
commit cb28cd1819
2 changed files with 7 additions and 3 deletions

View file

@ -98,7 +98,7 @@ jobs:
-G Ninja
- run: cmake --build ./build
- run: cmake --install build/ --prefix build/install
- run: ctest --output-on-failure -D CMAKE_CXX_COMPILER=${{ matrix.compiler }}
- run: CXX=${{ matrix.compiler }} ctest --output-on-failure
working-directory: build
cmake-windows-modules:

View file

@ -6,8 +6,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
import vulkan_hpp;
#include <string>
int header_version()
int test_instance()
{
return VK_HEADER_VERSION;
vk::InstanceCreateInfo instanceCreateInfo({}, nullptr);
vk::Instance instance = vk::createInstance(instanceCreateInfo);
instance.destroy();
return 0;
}