layers: Add DrawState check for DescriptorSet availability in Pool
authorTobin Ehlis <tobin@lunarg.com>
Tue, 20 Oct 2015 22:16:04 +0000 (16:16 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Thu, 22 Oct 2015 17:12:27 +0000 (11:12 -0600)
commit642014905da847d63e6f6e1ce9df11982d68f16b
treef5d6ecec42a455e9b67a6a3590f262cf7019815e
parent5a611c79f49e554f67d0821a6a903831323a19d7
layers: Add DrawState check for DescriptorSet availability in Pool

Prior to allocating descriptors from a Pool, verify that requested number/type of descriptors are available in that Pool, flag error if not.
When Pool is reset or when descriptors are allocated, release descriptors back to pool.

Added constructor and destructor for POOL_NODE to simplify allocation/cleanup.

Added layer documentation for new check and AllocDescriptorFromEmptyPool test to verify that error is correctly flagged.
layers/draw_state.cpp
layers/draw_state.h
layers/vk_validation_layer_details.md