Skip to content

Commit 5e7b84f

Browse files
committed
simplified cpp module to not require function loading
1 parent 52339af commit 5e7b84f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: tests/vk_hpp_module.cpp

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

1110
int test_instance()
1211
{
13-
vk::InstanceCreateInfo instanceCreateInfo({}, nullptr);
14-
vk::Instance instance = vk::createInstance(instanceCreateInfo);
15-
instance.destroy();
16-
return 0;
12+
return static_cast<int>(vk::makeApiVersion(1, 0, 0, 0));
1713
}

0 commit comments

Comments
 (0)