layers: Fix thread/PV codegen for new notation
authorMark Lobodzinski <mark@lunarg.com>
Tue, 27 Sep 2016 19:08:15 +0000 (13:08 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Thu, 29 Sep 2016 22:00:34 +0000 (16:00 -0600)
Embedded parameter length variables are now specified in vk.xml as
being separated by '::' instead of '->'.

Change-Id: I53befe20912d7d7ee628f6819dbd013bcd2a9414

generator.py

index 2868496..a020d4d 100755 (executable)
@@ -2580,6 +2580,7 @@ class ThreadOutputGenerator(OutputGenerator):
                     else:
                         # externsync can list members to synchronize
                         for member in externsync.split(","):
+                            member = str(member).replace("::", "->")
                             paramdecl += '    ' + functionprefix + 'WriteObject(my_data, ' + member + ');\n'
                 else:
                     paramtype = param.find('type')
@@ -3256,6 +3257,7 @@ class ParamCheckerOutputGenerator(OutputGenerator):
                 result = len.split(',')[0]
             else:
                 result = len
+            result = str(result).replace('::', '->')
         return result
     #
     # Retrieve the type and name for a parameter