simplified cpp module to not require function loading

This commit is contained in:
Jan Kuhlmann 2025-03-21 10:58:54 +01:00 committed by Charles Giessen
parent cb28cd1819
commit a523083f72

View file

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