diff options
| author | Dustin Graves <dustin@lunarg.com> | 2016-03-02 18:23:29 -0700 |
|---|---|---|
| committer | Dustin Graves <dustin@lunarg.com> | 2016-03-07 12:03:32 -0700 |
| commit | 9d7503f4d1563d1be2e8fcdea9a4e8e33f1bd541 (patch) | |
| tree | a069f3be795c49ad1ab1bcf9333ff14c9d15070e /vk.xml | |
| parent | 69729f30d2dad2ee3cafd8d0b4af8b6710e176a6 (diff) | |
| download | usermoji-9d7503f4d1563d1be2e8fcdea9a4e8e33f1bd541.tar.xz | |
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
Diffstat (limited to 'vk.xml')
| -rw-r--r-- | vk.xml | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1174,7 +1174,7 @@ maintained in the master branch of the Khronos Vulkan Github project. </validity> </type> <type category="struct" name="VkPipelineInputAssemblyStateCreateInfo"> - <member><type>VkStructureType</type> <name>sType</name></member> <!-- Must be VK_STRUCTURE_TYPE_PIPELINE_IINPUT_ASSEMBLY_STATE_CREATE_INFO --> + <member><type>VkStructureType</type> <name>sType</name></member> <!-- Must be VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO --> <member>const <type>void</type>* <name>pNext</name></member> <!-- Pointer to next structure --> <member optional="true"><type>VkPipelineInputAssemblyStateCreateFlags</type> <name>flags</name></member> <!-- Reserved --> <member><type>VkPrimitiveTopology</type> <name>topology</name></member> |
