Vulkan validation error minImageExtent same as maxImageExtent #3095
Labels
api: vulkan
Issues with Vulkan
good first issue
Good for newcomers
help required
We need community help to make this happen.
type: enhancement
New feature or request
Description
Vulkan validation error minImageExtent same as maxImageExtent
Repro steps
main.rs
lib.rs
Expected vs observed behavior
There should probably be no validation error triggered
Extra materials
[2022-10-12T10:51:46Z ERROR wgpu_hal::vulkan::instance] VALIDATION [VUID-VkSwapchainCreateInfoKHR-imageExtent-01274 (0x7cd0911d)]
Validation Error: [ VUID-VkSwapchainCreateInfoKHR-imageExtent-01274 ] Object 0: handle = 0x22b768d0090, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x7cd0911d | vkCreateSwapchainKHR() called with imageExtent = (1422,693), which is outside the bounds returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR(): currentExtent = (800,600), minImageExtent = (800,600), maxImageExtent = (800,600). The Vulkan spec states: imageExtent must be between minImageExtent and maxImageExtent, inclusive, where minImageExtent and maxImageExtent are members of the VkSurfaceCapabilitiesKHR structure returned by vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the surface (https://vulkan.lunarg.com/doc/view/1.3.224.1/windows/1.3-extensions/vkspec.html#VUID-VkSwapchainCreateInfoKHR-imageExtent-01274)
[2022-10-12T10:51:46Z ERROR wgpu_hal::vulkan::instance] objects: (type: DEVICE, hndl: 0x22b768d0090, name: ?)
Platform
Windows 11, running on a Ryzen7 5825U, using wgpu 0.14.0
The text was updated successfully, but these errors were encountered: