Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapchain creation error when use MSI afterburner. #332

Open
asdfz1346 opened this issue May 1, 2023 · 0 comments
Open

Swapchain creation error when use MSI afterburner. #332

asdfz1346 opened this issue May 1, 2023 · 0 comments

Comments

@asdfz1346
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant