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
My setup with Vulkan to use dynamic rendering, so when implementing ImGui, I included dynamic rendering. When using multi viewports all I see is just black for the window when going outside the main window.
Here is my ImplVulkan_InitInfo
`
initInfo.Instance = device->GetInstance();
initInfo.PhysicalDevice = device->GetPhysicalDevice();
initInfo.Device = device->GetDevice();
initInfo.Queue = device->GetGraphicsQueue();
initInfo.DescriptorPool = device->GetImGuiDescriptorPool();
initInfo.MinImageCount = 3;
initInfo.ImageCount = 3;
initInfo.UseDynamicRendering = true;
Validation Error: [ VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08910 ] Object 0: handle = 0x180555a8ac0, type = VK_OBJECT_TYPE_COMMAND_BUFFER; Object 1: handle = 0x625f640000000058, type = VK_OBJECT_TYPE_PIPELINE; | MessageID = 0x4c92b689 | vkCmdDrawIndexed(): VkRenderingInfo::pColorAttachments[0].imageView format (VK_FORMAT_B8G8R8A8_UNORM) must match corresponding format in VkPipelineRenderingCreateInfo::pColorAttachmentFormats[0] (Unhandled VkFormat). The Vulkan spec states: If the dynamicRenderingUnusedAttachments feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount greater than 0, then each element of the VkRenderingInfo::pColorAttachments array with an imageView not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats used to create the currently bound graphics pipeline (https://vulkan.lunarg.com/doc/view/1.3.290.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08910)
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
// Here's some code anyone can copy and paste to reproduce your issueImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
The text was updated successfully, but these errors were encountered:
Version/Branch of Dear ImGui:
Version 1.91.6 Branch: docking
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_vulkan.cpp
Compiler, OS:
Windows 11, Visual Studios
Full config/build information:
No response
Details:
My setup with Vulkan to use dynamic rendering, so when implementing ImGui, I included dynamic rendering. When using multi viewports all I see is just black for the window when going outside the main window.
Here is my ImplVulkan_InitInfo
`
initInfo.Instance = device->GetInstance();
initInfo.PhysicalDevice = device->GetPhysicalDevice();
initInfo.Device = device->GetDevice();
initInfo.Queue = device->GetGraphicsQueue();
initInfo.DescriptorPool = device->GetImGuiDescriptorPool();
initInfo.MinImageCount = 3;
initInfo.ImageCount = 3;
initInfo.UseDynamicRendering = true;
`
Validation Error: [ VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08910 ] Object 0: handle = 0x180555a8ac0, type = VK_OBJECT_TYPE_COMMAND_BUFFER; Object 1: handle = 0x625f640000000058, type = VK_OBJECT_TYPE_PIPELINE; | MessageID = 0x4c92b689 | vkCmdDrawIndexed(): VkRenderingInfo::pColorAttachments[0].imageView format (VK_FORMAT_B8G8R8A8_UNORM) must match corresponding format in VkPipelineRenderingCreateInfo::pColorAttachmentFormats[0] (Unhandled VkFormat). The Vulkan spec states: If the dynamicRenderingUnusedAttachments feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount greater than 0, then each element of the VkRenderingInfo::pColorAttachments array with an imageView not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats used to create the currently bound graphics pipeline (https://vulkan.lunarg.com/doc/view/1.3.290.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08910)
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: