mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user