layers: Add validation for VkDescriptorBufferInfo struct
authorTobin Ehlis <tobine@google.com>
Fri, 1 Jul 2016 23:36:48 +0000 (17:36 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 6 Jul 2016 15:41:25 +0000 (09:41 -0600)
commit198eba699b3dfe38b9c3457facb6312439848e14
treec2ec40ee27690da6704865d162a9808b07a92004
parentdb0ae3f4949d6c8531e7eba88feb07417ca53fea
layers: Add validation for VkDescriptorBufferInfo struct

For a descriptor write update to a buffer type, verify that the contents of
VkDescriptorBufferInfo struct are valid according to valid usage guidelines
of the spec.

Spun off the usage bit validation into its own function ValidateBufferUsage().
Previous ValidateBufferUpdate() function now calls that function as well as
performing all of the checks for the buffer, range, and offset members of
VkDescriptorBufferInfo struct.
layers/descriptor_sets.cpp
layers/descriptor_sets.h