From 06f40e3e97d7328a775138fbb83589a577612ea1 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 26 Jan 2023 15:19:36 +0200 Subject: [PATCH] test: add vulkan-loader test --- test/vulkan.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/vulkan.cpp diff --git a/test/vulkan.cpp b/test/vulkan.cpp new file mode 100644 index 00000000..b9d9f735 --- /dev/null +++ b/test/vulkan.cpp @@ -0,0 +1,14 @@ +#include + +int main() +{ + uint32_t version; + AEDI_EXPECT(vkEnumerateInstanceVersion(&version) == VK_SUCCESS); + AEDI_EXPECT(version >= VK_API_VERSION_1_1); + + uint32_t count; + AEDI_EXPECT(vkEnumerateInstanceLayerProperties(&count, nullptr) == VK_SUCCESS); + AEDI_EXPECT(vkEnumerateInstanceExtensionProperties(nullptr, &count, nullptr) == VK_SUCCESS); + + return 0; +}