Mercurial > games > semicongine
comparison svk/test.nim @ 1484:a2af327f19df default tip
add: final raw wrapper
author | sam <sam@basx.dev> |
---|---|
date | Thu, 01 May 2025 00:59:40 +0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1483:55911f736a5a | 1484:a2af327f19df |
---|---|
1 import ./vkapi | |
2 | |
3 var | |
4 appinfo = VkApplicationInfo( | |
5 pApplicationName: appName, | |
6 pEngineName: "semicongine", | |
7 apiVersion: VK_MAKE_API_VERSION(0, 1, 3, 0), | |
8 ) | |
9 createinfo = VkInstanceCreateInfo( | |
10 pApplicationInfo: addr appinfo, | |
11 enabledLayerCount: layers.len.uint32, | |
12 ppEnabledLayerNames: layersC, | |
13 enabledExtensionCount: requiredExtensions.len.uint32, | |
14 ppEnabledExtensionNames: instanceExtensionsC, | |
15 ) | |
16 checkVkResult vkCreateInstance(addr(createinfo), nil, addr(result.instance)) | |
17 loadVulkan(result.instance) |