layers: Add size helper exception for sampleCount which is not a dynamic array size
authorTobin Ehlis <tobin@lunarg.com>
Wed, 15 Apr 2015 22:01:16 +0000 (16:01 -0600)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:48:20 +0000 (17:48 +0800)
vk_helper.py

index fd9ff8a..93a915d 100755 (executable)
@@ -225,7 +225,7 @@ class HeaderFileParser:
         members = members.strip().split(':', 1)[0] # strip bitfield element
         (member_type, member_name) = members.rsplit(None, 1)
         # Store counts to help recognize and size dynamic arrays
-        if 'count' in member_name.lower() and 'uint' in member_type:
+        if 'count' in member_name.lower() and 'samplecount' != member_name.lower() and 'uint' in member_type:
             self.last_struct_count_name = member_name
         self.struct_dict[struct_type][num] = {}
         self.struct_dict[struct_type][num]['full_type'] = member_type