mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-28 01:50:54 +00:00
Fix extension grammar parsing
Extensions were not parsed correctly due to a typo in the Python script.
This commit is contained in:
parent
1c43cb8550
commit
12f5509734
@ -60,7 +60,7 @@ def compose_extension_list(exts):
|
|||||||
- exts: a sequence of extension names
|
- exts: a sequence of extension names
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
a string containing the braced list of SpvCapability* enums named by caps.
|
a string containing the braced list of extensions named by exts.
|
||||||
"""
|
"""
|
||||||
return "{" + ", ".join(['libspirv::Extension::k{}'.format(e) for e in exts]) + "}"
|
return "{" + ", ".join(['libspirv::Extension::k{}'.format(e) for e in exts]) + "}"
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ def generate_enum_operand_kind_entry(entry):
|
|||||||
enumerant = entry.get('enumerant')
|
enumerant = entry.get('enumerant')
|
||||||
value = entry.get('value')
|
value = entry.get('value')
|
||||||
caps = entry.get('capabilities', [])
|
caps = entry.get('capabilities', [])
|
||||||
exts = entry.get('exts', [])
|
exts = entry.get('extensions', [])
|
||||||
params = entry.get('parameters', [])
|
params = entry.get('parameters', [])
|
||||||
params = [p.get('kind') for p in params]
|
params = [p.get('kind') for p in params]
|
||||||
params = zip(params, [''] * len(params))
|
params = zip(params, [''] * len(params))
|
||||||
|
Loading…
Reference in New Issue
Block a user