layers: Fix draw_state validation of descriptor updates with images
authorTobin Ehlis <tobine@google.com>
Thu, 21 Jan 2016 17:21:04 +0000 (10:21 -0700)
committerJon Ashburn <jon@lunarg.com>
Fri, 22 Jan 2016 23:28:24 +0000 (16:28 -0700)
commit8f665690986636017315357735fd46a89f31da3b
tree3f1b7c23cd8b3b12bf7a725a3358f4edf5d8c2cd
parent8513a81376fe2ba8e93ebc59e4859713f1cd10bc
layers: Fix draw_state validation of descriptor updates with images

Earlier fix was broken b/c we didn't have format of swapchain images.

This fix adds the format to imageLayoutMap IMAGE_NODE struct, which contains all images created via vkCreateImage() as well as all swapchain images fetched via vkGetSwapchainImagesKHR().

This required enhancing the SWAPCHAIN_NODE to include the createInfo. Since this has a dangling ptr for queueIndices, added a constructor and destructor to that struct to handle allocation and clean-up of that ptr.
layers/draw_state.cpp
layers/draw_state.h