Vulkan-Tools icon indicating copy to clipboard operation
Vulkan-Tools copied to clipboard

cube: Support runtime selection of WSI platform

Open charles-lunarg opened this issue 5 months ago • 24 comments

By changing the selection of a WSI platform from a build time choice to a runtime choice, this allows the removal of vkcube-wayland as a separate binary.

Use --wsi <xlib|xcb|wayland|display|directfb> to choose the WSI platform that vkcube will render with. The chosen platform must be one that vkcube was compiled with support for, so directfb will be unavailable without changing the build parameters to enable it.

These changes have been made to both vkcube and vkcubepp.

Platforms which do not have multiple WSI platforms, such as windows, android, and apple (metal is the only non-deprecated platform) do not have this option as there aren't any platforms to choose from.

charles-lunarg avatar Sep 05 '24 17:09 charles-lunarg