mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-24 04:41:37 +00:00
test: add vulkan-loader test
This commit is contained in:
parent
70f65fb5ff
commit
06f40e3e97
1 changed files with 14 additions and 0 deletions
14
test/vulkan.cpp
Normal file
14
test/vulkan.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in a new issue