layer: Add in-use validation for imageView
authorTobin Ehlis <tobine@google.com>
Mon, 19 Sep 2016 20:02:58 +0000 (14:02 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 22 Sep 2016 13:21:24 +0000 (07:21 -0600)
commit03ea795b83fdf0099594808a1a57064dea7f02a1
treef48399cbe411d60dbf90acd637cfd881f3a1eb68
parentd85c42a6c1d6ad7a6f684c5bd793aab482b7705c
layer: Add in-use validation for imageView

Bind imageView from a descriptor to the command buffer at CmdBindDescriptorSets
time and check for an in-use imageView at DestroyImageView time.

Also use new AddCommandBufferBindingImageView() helper to bind children of
framebuffer in AddFrameBufferBinding().
layers/core_validation.cpp
layers/core_validation_types.h
layers/descriptor_sets.cpp