I’m sometimes getting this validation error when rendering a post-processing effect after a window resize occurs. I can’t find any connection between the post-processing effect’s framebuffer and the rendering framebuffer. This is happening during a layout transition of the texture I am rendering to.
Validation Error: [ UNASSIGNED-CoreValidation-DrawState-InvalidCommandBuffer-VkDeviceMemory ] Object 0: handle = 0x167ecba8280, type = VK_OBJECT_TYPE_COMMAND_BUFFER; Object 1: handle = 0xf843070000000238, type = VK_OBJECT_TYPE_DEVICE_MEMORY; | MessageID = 0xf8bccee3 | You are adding vkCmdPipelineBarrier() to VkCommandBuffer 0x167ecba8280[] that is invalid because bound VkDeviceMemory 0xf843070000000238[] was destroyed.
Any clues what might be going on? I am looking through the program in the debugger and I don’t see anything that could be considered abnormal. It appears the error is saying the memory associated with a texture has been deleted, but this makes no sense to me. Or maybe it is saying the command buffer is invalid because some type of memory somewhere else was destroyed? I don’t understand.