layers: Add NULL/sType checks for struct members
authorDustin Graves <dustin@lunarg.com>
Thu, 3 Mar 2016 01:23:29 +0000 (18:23 -0700)
committerDustin Graves <dustin@lunarg.com>
Mon, 7 Mar 2016 19:03:32 +0000 (12:03 -0700)
commitaf0d6dc3237346933fb9da9cb13d414bf46cf664
treea0f9d45f1c696cf4aec1e7864d829b0a68c165eb
parentaf1f1b86877a3f92fc7c01e1b51749a2ef3daaf4
layers: Add NULL/sType checks for struct members

Add param_checker support for validating struct members.  Messages
are logged for the following conditions, based on conditions
specified in vk.xml:
 - A pointer is NULL and is not marked as optional in the XML
 - An array is NULL and is not marked as optional in the XML, unless
   its count is 0
 - An array count is 0 and is not marked as optional in the XML
 - A structure's sType value does not match the value specified
   in the XML

Addresses GL105, GL109, GH82

Change-Id: I7063fe2582b30fdfc0006fe945a0f9c84a2aa66a
generator.py
layers/param_checker_utils.h
vk.xml