layers: Codegen VkBool32/enum parameter validation
authorDustin Graves <dustin@lunarg.com>
Thu, 24 Mar 2016 01:44:00 +0000 (19:44 -0600)
committerDustin Graves <dustin@lunarg.com>
Fri, 1 Apr 2016 21:34:36 +0000 (15:34 -0600)
commitc3fc3d8e91f24136f4e2cc036e92033b826a96e7
treeb4629d1610ab9216cc93d1c76c6b82e855ff5eed
parentb8458d181ca96c09e5655ecd2a58532bbfb947d3
layers: Codegen VkBool32/enum parameter validation

Now generating the VkBool32 and enum checks:
 - Warns if a VkBool32 parameter is neither VK_TRUE nor VK_FALSE
 - Warns if an enum token value falls outside of the enum's
   begin/end range and the token was not added by an extension.
   Only checkes enum's that have a begin/end range.  Detection
   of tokens added by extensions is based on the base_value defined
   in appendic C.10 of the Vulkan specification.

Change-Id: Id49ace52fea8a35972f96d54247b98aba182c09e
generator.py
layers/parameter_validation.cpp
layers/parameter_validation_utils.h