layers:Add validation to DestroyDescriptorPool
authorTobin Ehlis <tobine@google.com>
Wed, 12 Oct 2016 15:29:26 +0000 (09:29 -0600)
committerTobin Ehlis <tobine@google.com>
Fri, 14 Oct 2016 01:13:33 +0000 (19:13 -0600)
commitad69bb638f91659f9b2c079d9ce2bf45910f622e
tree3cac7b2ce1380403b51356571f2d4fa85c390639
parenta275509eb92eac647a885f1d4aa65adecacb88f9
layers:Add validation to DestroyDescriptorPool

Add validation flag for DestroyDescriptorPool and update it with
validation code using the Pre/Post pattern.
Flag error if descriptor pool is in use and invalidate any cmd buffers
that it was bound to. Remove pool state from map when it's destroyed.
When the pool is destroyed make sure all of its descriptor sets are
also freed.
layers/core_validation.cpp
layers/core_validation.h