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
+2
View File
@@ -110,6 +110,7 @@ jobs:
- name: Run Test Suite (vulkan)
env:
LOVE_GRAPHICS_DEBUG: 1
LOVE_GRAPHICS_VULKAN_ALLOW_SOFTWARE: 1
run: |
./love-${{ github.sha }}.AppImage love2d-${{ github.sha }}/testing/main.lua --all --isRunner --renderers vulkan
- name: Love Test Report (vulkan)
@@ -390,6 +391,7 @@ jobs:
# if: steps.vars.outputs.arch != 'ARM64'
# env:
# LOVE_GRAPHICS_DEBUG: 1
# LOVE_GRAPHICS_VULKAN_ALLOW_SOFTWARE: 1
# run: |
# powershell.exe ./install/lovec.exe ./megasource/libs/love/testing/main.lua --all --isRunner --renderers vulkan
# - name: Love Test Report (vulkan)