mirror of
https://github.com/KhronosGroup/Vulkan-Headers.git
synced 2025-04-03 20:24:58 +00:00
replaced minimal example for modules
This commit is contained in:
parent
24ce771ec1
commit
cb28cd1819
2 changed files with 7 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue