Fix vulkan test

pull/2113/head
nyorain 7 years ago
parent 766024e334
commit 0aa71d6808
  1. 2
      test cases/frameworks/17 vulkan/meson.build
  2. 13
      test cases/frameworks/17 vulkan/vulkanprog.c

@ -2,6 +2,6 @@ project('vulkan test', 'c')
vulkan_dep = dependency('vulkan')
e = executable('vulkanprog', 'vulkanprog.c', dependencies : sdl2_dep)
e = executable('vulkanprog', 'vulkanprog.c', dependencies : vulkan_dep)
test('vulkantest', e)

@ -3,21 +3,11 @@
int main()
{
VkApplicationInfo application_info = {
VK_STRUCTURE_TYPE_APPLICATION_INFO,
NULL,
"sway",
VK_MAKE_VERSION(1,0,0),
"wlroots",
VK_MAKE_VERSION(1,0,0),
VK_MAKE_VERSION(1,0,0)
};
VkInstanceCreateInfo instance_create_info = {
VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
NULL,
0,
&application_info,
NULL,
0,
NULL,
0,
@ -31,5 +21,6 @@ int main()
return ret;
}
vkDestroyInstance(instance, NULL);
return 0;
}
Loading…
Cancel
Save