layers:Add pool member to DescriptorSet class
authorTobin Ehlis <tobine@google.com>
Wed, 12 Oct 2016 20:34:12 +0000 (14:34 -0600)
committerTobin Ehlis <tobine@google.com>
Fri, 14 Oct 2016 01:13:33 +0000 (19:13 -0600)
commit0042d3a860140b5dd5f9eda3e440e24aca02e528
treec3d7ba5d0cb3bf6926740f93868d1065959246d4
parentc3b4decca400e2328e40820aa5215a42921731b5
layers:Add pool member to DescriptorSet class

When creating a DescriptorSet instance, record the pool that the set is
allocated from in a private pool_ variable.
Then, when binding a set to a cmd buffer, also create a binding between
the command buffer and the pool.
This allows us to catch the in-use case when sets are implicitly freed
by calling vkDestroyDescriptorPool().
layers/descriptor_sets.cpp
layers/descriptor_sets.h