我的验证错误返回以下错误:
Message ID name: VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251
Message: Validation Error: [ VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251 ] Object 0: handle = 0x1867f53a780, name = Logical device: NVIDIA GeForce GTX 1070, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xbebcae79 | vkCreateImage(): Format VK_FORMAT_R8G8B8A8_SRGB is not supported for this combination of parameters and VkGetPhysicalDeviceImageFormatProperties returned back VK_ERROR_FORMAT_NOT_SUPPORTED. The Vulkan spec states: Each of the following values (as described in Image Creation Limits) must not be undefined : imageCreateMaxMipLevels, imageCreateMaxArrayLayers, imageCreateMaxExtent, and imageCreateSampleCounts (https://vulkan.lunarg.com/doc/view/1.2.198.1/windows/1.2-extensions/vkspec.html#VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251)
Severity: VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT
我确切地知道代码中导致这种情况的位置,但我不知道是哪种参数组合出了问题。有没有办法让驾驶员指示:
"您的图像是与使用类型y"不兼容的格式x;或者类似的东西?
如果某些参数发生冲突,请询问https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues以改进错误报告。理想情况下应该有适当的错误消息。
但是,如果GPU根本不支持给定的参数组合,那么就无能为力。问";你为什么不支持X;。它们根本没有,因为它没有在给定的GPU\驱动程序上实现或不可实现。