vulkan: remove unnecessary code

Since we supply the vulkan headers ourselves
we can be sure that all the definitions used are there.
This commit is contained in:
niki
2022-10-06 01:18:27 +02:00
parent c89cca9e60
commit a95ff597d5
6 changed files with 2 additions and 105 deletions
-18
View File
@@ -58,24 +58,6 @@ int Vulkan::getVsync()
return vsync;
}
uint32_t Vulkan::getSupportedVulkanApiVersion(uint32_t suggested)
{
#ifdef VK_VERSION_1_3
if (suggested >= VK_API_VERSION_1_3)
return VK_API_VERSION_1_3;
#endif
#ifdef VK_VERSION_1_2
if (suggested >= VK_API_VERSION_1_2)
return VK_API_VERSION_1_2;
#endif
#ifdef VK_VERSION_1_1
if (suggested >= VK_API_VERSION_1_1)
return VK_API_VERSION_1_1;
#endif
return VK_API_VERSION_1_0;
}
VkFormat Vulkan::getVulkanVertexFormat(DataFormat format)
{
switch (format)