| 1 |
#include <vulkan/vulkan.h> |
| 2 |
#include <stdio.h> |
| 3 |
|
| 4 |
int main(void) |
| 5 |
{ |
| 6 |
VkInstanceCreateInfo instance_create_info = { |
| 7 |
VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, |
| 8 |
NULL, |
| 9 |
0, |
| 10 |
NULL, |
| 11 |
0, |
| 12 |
NULL, |
| 13 |
0, |
| 14 |
NULL, |
| 15 |
}; |
| 16 |
|
| 17 |
// we don't actually require instance creation to succeed since |
| 18 |
// we cannot expect test environments to have a vulkan driver installed. |
| 19 |
// As long as this does not produce as segmentation fault or similar, |
| 20 |
// everything's alright. |
| 21 |
VkInstance instance; |
| 22 |
if(vkCreateInstance(&instance_create_info, NULL, &instance) == VK_SUCCESS) |
| 23 |
vkDestroyInstance(instance, NULL); |
| 24 |
|
| 25 |
return 0; |
| 26 |
} |