diff options
Diffstat (limited to 'src/compiler/spirv')
-rw-r--r-- | src/compiler/spirv/spirv_info_c.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler/spirv/spirv_info_c.py b/src/compiler/spirv/spirv_info_c.py index d898bf0131b..4a6a81524b3 100644 --- a/src/compiler/spirv/spirv_info_c.py +++ b/src/compiler/spirv/spirv_info_c.py @@ -78,8 +78,10 @@ if __name__ == "__main__": spirv_info = json.JSONDecoder().decode(open(pargs.json, "r").read()) - capabilities = collect_data(spirv_info, "Capability") - decorations = collect_data(spirv_info, "Decoration") + info = [ + collect_data(spirv_info, "Capability"), + collect_data(spirv_info, "Decoration"), + ] with open(pargs.out, 'w') as f: - f.write(TEMPLATE.render(info=[capabilities, decorations])) + f.write(TEMPLATE.render(info=info)) |