On Tue, 19 Apr 2022 at 03:44, Zebediah Figura zfigura@codeweavers.com wrote:
We would like to allow overriding the soname of libvulkan, in which case the tests and demos should respect that override.
[...]
@@ -29,6 +30,13 @@ #include <unistd.h> #include <fcntl.h> #include <stdbool.h> +#include "vkd3d_common.h"
+#define DECLARE_VK_PFN(name) PFN_##name name; +DECLARE_VK_PFN(vkCreateInstance); +#define VK_INSTANCE_PFN DECLARE_VK_PFN +#define VK_DEVICE_PFN DECLARE_VK_PFN +#include "../tests/vulkan_procs.h"
Including private vkd3d includes in the demos is a bit unfortunate though; we've been able to avoid that so far. Note that simply using dlopen() here would work fine; demo_xcb.h is already platform specific code. Besides, for the demos, the focus should be a bit more on being easy to understand than the rest of the code.