Hi,
Thanks for the library!
But the code inside auto_vk_toolkit.hpp will actually be troublesome if Auto-Vk-Toolkit is linked dynamically, since multiple context_vulkan instances will exists in different part of the code (one in so/dll, another in the main program because it's inlined).
// include/auto_vk_toolkit.hpp#L201
inline auto& context()
{
static context_vulkan sContext;
return sContext;
}
Hi,
Thanks for the library!
But the code inside auto_vk_toolkit.hpp will actually be troublesome if
Auto-Vk-Toolkitis linked dynamically, since multiplecontext_vulkaninstances will exists in different part of the code (one in so/dll, another in the main program because it's inlined).