charles-lunarg / vk-bootstrap

Vulkan Bootstrapping Iibrary
MIT License
821 stars 82 forks source link

Update to v1.3.268 & switch to spaces in VkBootstrapDispatch.h & Add padding to DispatchTables for undefined functions #213

Closed charles-lunarg closed 1 year ago

charles-lunarg commented 1 year ago

This allows for a project with not-perfect use of macro defines across the code base to not have different definitions for the dispatch tables.

For example:

    PFN_vkCreateAndroidSurfaceKHR fp_vkCreateAndroidSurfaceKHR = nullptr;
    void * fp_vkCreateAndroidSurfaceKHR{};

If VK_KHR_android_surface is not defined for whatever reason, the dispatch table is still the same size, so other functions aren't affected.

Fixes #178