You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the tutorial and drew the triangle. When I run MSI afterburner, the console gives me an error:
validation layer: Validation Error: [ VUID-VkSwapchainCreateInfoKHR-imageFormat-01778 ] Object 0: handle = 0x18e224febb8, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xc036022f | vkCreateSwapchainKHR(): pCreateInfo->imageFormat VK_FORMAT_B8G8R8A8_SRGB with tiling VK_IMAGE_TILING_OPTIMAL does not support usage that includes VK_IMAGE_USAGE_STORAGE_BIT. The Vulkan spec states: The implied image creation parameters of the swapchain must be supported as reported by vkGetPhysicalDeviceImageFormatProperties (https://vulkan.lunarg.com/doc/view/1.3.236.0/windows/1.3-extensions/vkspec.html#VUID-VkSwapchainCreateInfoKHR-imageFormat-01778)
It looks like my program using imageUsage incorrectly. I tried to debug and after the program executed vkCreateSwapchainKHR(device_, &createInfo, nullptr, &swapChain) then createInfo.imageUsage was incorrectly added with All physical device's format capabilities.
This may not be an appropriate place to report the issue. Just hope others are not bothered by this issue.
The text was updated successfully, but these errors were encountered:
I followed the tutorial and drew the triangle. When I run MSI afterburner, the console gives me an error:
It looks like my program using imageUsage incorrectly. I tried to debug and after the program executed
vkCreateSwapchainKHR(device_, &createInfo, nullptr, &swapChain)
thencreateInfo.imageUsage
was incorrectly added with All physical device's format capabilities.This may not be an appropriate place to report the issue. Just hope others are not bothered by this issue.
The text was updated successfully, but these errors were encountered: