The Khronos Vulkan Tutorial introduces vk::ImageMemoryBarrier2 "Drawing a triangle/Drawing/Command Buffers" , but in a later chapter : "Texture Mapping/Images" , it again tells us to create transitionImageLayout function with the old vk::ImageMemoryBarrier

The Khronos Vulkan Tutorial introduces
vk::ImageMemoryBarrier2"Drawing a triangle/Drawing/Command Buffers" , but in a later chapter : "Texture Mapping/Images" , it again tells us to createtransitionImageLayoutfunction with the oldvk::ImageMemoryBarrier