layers: Add cmd buffer binding for descriptor resources
authorTobin Ehlis <tobine@google.com>
Wed, 17 Aug 2016 19:33:44 +0000 (13:33 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 24 Aug 2016 00:43:46 +0000 (18:43 -0600)
commit385695c9c54547d93c65064ed0c8352f3cc21428
tree0b6d1131f38e32cae19fef93e8ed027c435ceabf
parent1a22165cdd738bbdf85a028ff578d67b390cccf6
layers: Add cmd buffer binding for descriptor resources

This commit creates bindings between a cmd buffer and the images/buffers
and their memory allocations that are tied to that cmd buffer's active
descriptor slots (set/binding combination).
The active resources are anything that's in use during any of the draws
issued in the cmd buffer.
If any of the bound resources are deleted, the cmd buffer will become
invalid and an error will be issued on the next attempt to submit it.
layers/descriptor_sets.cpp