UgImageLayout
Image layout transition utilities
transition
Record a pipeline barrier to transition an image between layouts
U0 transition(VkCommandBuffer cmdBuffer, VkImage image, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout);Parameters
cmdBuffer— Command buffer to record the barrier intoimage— Image whose layout is being transitionedformat— Pixel format of the imageoldLayout— Current image layoutnewLayout— Target image layout