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
Hi guys.
I see lots of errors when I run the subpass example
[error] -564812795 - VUID-VkDescriptorImageInfo-imageLayout-00344:
Validation Error: [ VUID-VkDescriptorImageInfo-imageLayout-00344 ]
Object 0: handle = 0x18a95a61700, type = VK_OBJECT_TYPE_COMMAND_BUFFER;
Object 1: handle = 0x59f7450000000038, type = VK_OBJECT_TYPE_IMAGE;
| MessageID = 0xde55a405 |
vkCmdDraw(): Cannot use VkImage 0x59f7450000000038[] (layer=0 mip=0) with specific layout VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL that doesn't match the previous known layout VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL.
The Vulkan spec states: imageLayout must match the actual VkImageLayout of each subresource accessible from imageView at the time this descriptor is accessed as defined by the image layout matching rules (https://vulkan.lunarg.com/doc/view/1.3.280.0/windows/1.3-extensions/vkspec.html#VUID-VkDescriptorImageInfo-imageLayout-00344)
[error] 732146062 - VUID-vkCmdDraw-None-08114:
Validation Error: [ VUID-vkCmdDraw-None-08114 ]
Object 0: handle = 0x2bfe4c000000016e, type = VK_OBJECT_TYPE_DESCRIPTOR_SET;
| MessageID = 0x2ba3a98e |
vkCmdDraw(): Descriptor set VkDescriptorSet 0x2bfe4c000000016e[] Image layout specified by vkCmdBindDescriptorSets doesn't match actual image layout at time descriptor is used.. See previous error callback for specific details.
The Vulkan spec states: Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT (https://vulkan.lunarg.com/doc/view/1.3.280.0/windows/1.3-extensions/vkspec.html#VUID-vkCmdDraw-None-08114)
G-buffer attachments are output in first subpass as VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL and read in second subpass as VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL. And the image views of the attachments are passed as descriptors with layout VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL in second subpass.
Can you help to identify what happens? do I need to add a image barrier to do the layout transition? @SaschaWillems
The text was updated successfully, but these errors were encountered:
Hi guys.
I see lots of errors when I run the subpass example
G-buffer attachments are output in first subpass as
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL
and read in second subpass asVK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
. And the image views of the attachments are passed as descriptors with layoutVK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
in second subpass.Can you help to identify what happens? do I need to add a image barrier to do the layout transition? @SaschaWillems
The text was updated successfully, but these errors were encountered: