Skip to content

Design of avk::context() actually prevents building as shared library #166

@libreliu

Description

@libreliu

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;
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions