Game development in a qube

I am developing a game using the amethyst game engine in rust and I’m having some issues getting qubes to run the vulkan backend, which I am realizing might be impossible.

My requirements are not that the game is lag-free, or that input-latency is low. The game is a 2-D game so it should not require any advanced computation by the GPU.

However when I install vulkan in my debian-10 qube and run
vulkaninfo I’m getting an error like so:

VULKANINFO
==========

Vulkan Instance Version: 1.1.97

/build/vulkan-tools-6bmpQy/vulkan-tools-1.1.97+dfsg1/vulkaninfo/vulkaninfo.c:3845: failed with VK_ERROR_INITIALIZATION_FAILED

I’m suspecting this is due to no GPU being found by vulkan. Is there a way to be able to do this light-weight 2-D game development in qubes or is this a no-go?

Thanks.

@nexus wrote:

Is there a way to be able to do this light-weight 2-D game development in qubes or is this a no-go?

I haven’t looked into this more than a 3 minute web search and some
Wikipedia but it appears
MESA is an
open source software implementation of OpenGL, Vulkan, and other
graphics API specifications. It does come with a software
renderer
.

Setting VK_DRIVER_FILES in a Fedora 40 qube helps, see also Vulkan - ArchWiki

$ vkcube # it doesn't work out of the box
vkEnumeratePhysicalDevices reported zero accessible devices.

Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information.

$ # but with this env var, it works fine!
$ VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json vkcube
Selected GPU 0: llvmpipe (LLVM 18.1.1, 256 bits), type: Cpu

This also made the zed.dev code editor work correctly for me.

I tried this but zed still ran incredibly slowly