vulkan: improve module initialization code to exit to other backends if there's a device but it's not suitable for love.

Disallow software rendering (CPU devices) with vulkan by default. The environment variable LOVE_GRAPHICS_VULKAN_ALLOW_SOFTWARE can be set to 1 to override that behaviour.
This commit is contained in:
Sasha Szpakowski
2025-01-11 14:55:23 -04:00
parent 21c9c06d26
commit 652b012b02
3 changed files with 56 additions and 9 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ protected:
private:
bool checkValidationSupport();
void pickPhysicalDevice();
int rateDeviceSuitability(VkPhysicalDevice device);
int rateDeviceSuitability(VkPhysicalDevice device, bool querySwapChain);
QueueFamilyIndices findQueueFamilies(VkPhysicalDevice device);
void createLogicalDevice();
void createPipelineCache();