layers: Add check for push descriptor allocation
authorJohn Zulauf <jzulauf@lunarg.com>
Wed, 24 Jan 2018 18:54:05 +0000 (11:54 -0700)
committerjzulauf-lunarg <32470354+jzulauf-lunarg@users.noreply.github.com>
Wed, 31 Jan 2018 16:12:35 +0000 (09:12 -0700)
commit21a24d428d8a4075bc835d4220d2092254e17b32
tree886890485fdcbad2c60dcbb40a9fac43c2003392
parent6d71c6473925e03deab5b3396112cf31e95f1249
layers: Add check for push descriptor allocation

Add validation check for attempting to use vkAllocateDescriptorSets with
a descriptor set layout create with the push descriptor flag
VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR set.

Checks added:
VALIDATION_ERROR_04c00268
    VUID-VkDescriptorSetAllocateInfo-pSetLayouts-00308

Change-Id: I81bed8e7eb5396f7a716b6a14b648b5051127259
layers/descriptor_sets.cpp
layers/vk_validation_error_database.txt