LunarG/VulkanTools

API dump layer does not compile with latest Vulkan headers

Closed this issue · 2 comments

The latest Vulkan headers (commit KhronosGroup/Vulkan-Headers@595c8d4) removed the enum VkVideoEncodeFlagBitsKHR which causes compilation errors in the API dump layer:

In file included from [...]/layersvt/generated/api_dump.cpp:27:
[...]/layersvt/generated/api_dump_text.h:11576:41: error: unknown type name 'VkVideoEncodeFlagBitsKHR'; did you mean 'VkVideoEncodeFlagsKHR'?
11576 | void dump_text_VkVideoEncodeFlagBitsKHR(VkVideoEncodeFlagBitsKHR object, const ApiDumpSettings& settings, int indents)
|                                               ^~~~~~~~~~~~~~~~~~~~~~~~
|                                               VkVideoEncodeFlagsKHR

Generally, this repo expects to be built against a specific header version (specified in known_good.json).

That said - it is pretty unusual that updating to newer headers breaks the build. The fix is thankfully extremely simple - just update this repo to the latest headers (which involves running the code gen).

I'm going ahead and doing just that to unblock you.

Closing since the header updates fixed the issue (I did repro it) and it has been merged.