aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2016-09-27 13:08:15 -0600
committerMark Lobodzinski <mark@lunarg.com>2016-09-29 16:00:34 -0600
commit12126fd1dbea7331274fed046fb717375dc44e44 (patch)
tree52a33c2e28842a3169b18a0d1699f76b6d91c5d6
parenta6c8f0d3f321e012abde3e3aef30a96268035755 (diff)
downloadusermoji-12126fd1dbea7331274fed046fb717375dc44e44.tar.xz
layers: Fix thread/PV codegen for new notation
Embedded parameter length variables are now specified in vk.xml as being separated by '::' instead of '->'. Change-Id: I53befe20912d7d7ee628f6819dbd013bcd2a9414
-rwxr-xr-xgenerator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator.py b/generator.py
index 28684965..a020d4d4 100755
--- a/generator.py
+++ b/generator.py
@@ -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