How do I use 2KHR struct like VkImageMemoryBarrier2KHR in Vulkan?


I tried to use VkImageMemoryBarrier2KHR in my code,but it’s undefined.Do I have to turn on some extensions in some layers?

You need to update your Vulkan SDK resp. headers.