Closed mizvekov closed 7 months ago
I don't own any apple devices and can't help with this issue. If you need a fix for it, feel free to provide a PR. If it's a bug with MoltenVK, the please open an issue in the MoltenVK repo.
I also don't have plans to support a full headless mode. For that I have created https://github.com/SaschaWillems/VulkanCapsViewerCmdLine, which is a command line only version of the caps viewer with minimal dependencies (no Qt). This was a request by an IHV.
I am creating a homebrew "package" (formula) for vulkanCapsViewer. Note that homebrew is not MacOS specific, and supports linux as well, and some of the issues here relate to that.
Since this repo lacks any tests, and homebrew policy requires some minimum testing, I am writing some myself, on the package formula.
The homebrew linux CI is headless, and for vulkanCapsViewer this is quite a serious limitation as even
--help
will fail because it can't connect to X11/wayland.So to work around that, I am running the tests under the
QT_QPA_PLATFORM=offscreen
environment variable. This is enough to get linux CI working for a simple "-- help works" test.As this is not quite good enough testing, I am also writing a test case for "-s works and provides a json file". But at least on MacOS, this however crashes deep in the bowels of MoltenVK.
stacktrace:
This is tested on an ARM64 MacOS, vulkancapsviewer compiled in Debug mode.