MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / load

Method load

utils/ggt.py:81–89  ·  view source on GitHub ↗

Populates self.grammar from the file. Applies the self.prefix to operand enums

(self)

Source from the content-addressed store, hash-verified

79 self.load()
80
81 def load(self):
82 """
83 Populates self.grammar from the file.
84 Applies the self.prefix to operand enums
85 """
86 with open(self.file) as json_file:
87 self.grammar = json.loads(json_file.read())
88 if len(self.prefix) > 0:
89 prefix_operand_kind_names(self.prefix, self.grammar)
90
91
92def convert_min_required_version(version): # (version: str | None) -> str

Callers 2

__init__Method · 0.95
FromMessageMethod · 0.80

Calls 1

Tested by

no test coverage detected