DsoTsin / kaleido3d

Next Generation Renderer for Cross Platform Engine Development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[vk] Fix swapchain image layout transition error

DsoTsin opened this issue · comments

commented

23:04:47 [kaleido3d::VulkanRHI]::RHIRoot::Initializer-Create Instance.
23:04:47 [kaleido3d::VulkanRHI]::extension num : 3.
23:04:47 [kaleido3d::VulkanRHI]::available extension : VK_KHR_surface .
23:04:47 [kaleido3d::VulkanRHI]::available extension : VK_KHR_win32_surface .
23:04:47 [kaleido3d::VulkanRHI]::available extension : VK_EXT_debug_report .
23:04:47 [kaleido3d::VulkanRHI]::enable validation layer [VK_LAYER_LUNARG_standard_validation].
23:04:47 [kaleido3d::VulkanRHI]::RHIRoot::Initializer Device Count : 1 .
23:04:47 [kaleido3d::VulkanRHI]::Vulkan First Device: GTX 670
23:04:47 [EnumAllDeviceAdapter]::DeviceName is GTX 670, VendorId is 4318.
23:04:47 [kaleido3d::VulkanRHI]::Device-PhysicDeviceQueue count = 2.
23:04:47 [kaleido3d::VulkanRHI]::Device-graphicsQueueIndex(0) queueFlags(15).
23:04:48 [kaleido3d::VulkanRHI]::FrameBuffer-created..
23:04:48 [kaleido3d::VulkanRHI]::CommandContextPool-thread 13624, new vkcommandpool created.
23:04:48 [kaleido3d::VulkanRHI]::CommandContextPool-thread 13624, new GraphicsCommandContext created.
23:04:48 [kaleido3d::VulkanRHI]::FrameBuffer-created..
23:04:48 [kaleido3d::VulkanRHI]::CommandContextPool-thread 13624, new GraphicsCommandContext created.
23:04:48 [kaleido3d::VulkanRHI]::RenderViewport-Initialized: width(1920), height(1080), swapImage(2).
23:04:48 [TriangleMesh]::finish buffer upload..
23:04:48 [App]::D:\project\kaleido3d\Source\UnitTest\3.Triangle\Triangle.cpp@compile@153
23:04:48 [App]::D:\project\kaleido3d\Source\UnitTest\3.Triangle\Triangle.cpp@compile@153
23:04:48 [kaleido3d::VulkanRHI]::CommandContextPool-thread 13624, new GraphicsCommandContext created.
23:04:48 [kaleido3d::VulkanRHI]::CommandContextPool-thread 13624, new GraphicsCommandContext created.
23:04:48 [kaleido3d::VulkanRHI]::VkDebug--{ERROR}[DS]: Cannot submit cmd buffer using image (0x4) [sub-resource: aspectMask 0x1 array layer 0, mip level 0], with layout VK_IMAGE_LAYOUT_UNDEFINED when first use is VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL.
23:04:48 [kaleido3d::VulkanRHI]::VkDebug--{WARNING}[ParameterValidation]: vkQueueWaitIdle: returned VK_ERROR_DEVICE_LOST, indicating that the logical device has been lost
23:04:48 [VKRHI_ASSERT]::failed vkQueueWaitIdle(m_Queue) D:\project\kaleido3d\Source\RHI\Vulkan\Private\VkCommandContext.cpp@50.