MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / writeFlagDefinitions

Method writeFlagDefinitions

scripts/syncgenerator.py:155–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 return (None, True)
154
155 def writeFlagDefinitions(self):
156 for name, stages in self.pipeline_stage_equivalent.items():
157 output = []
158 for stage in stages:
159 (condition, result) = self.evaluatePipelineIfdef(stage)
160 if result:
161 output.append(f' ** ename:{stage}')
162 else:
163 output.append(f'// {condition} -> {result}, not emitting ** ename:{stage}')
164
165 self.writeBlock(f'flagDefinitions/{name}{self.file_suffix}', output)
166
167 for name, flags in self.access_flag_equivalent.items():
168 output = []
169 for flag in flags:
170 (condition, result) = self.evaluateAccessIfdef(flag)
171 if result:
172 output.append(f' ** ename:{flag}')
173 else:
174 output.append(f'// {condition} -> {result}, not emitting ** ename:{flag}')
175
176 self.writeBlock(f'flagDefinitions/{name}{self.file_suffix}', output)
177
178 def supportedPipelineStages(self):
179 output = []

Callers 1

endFileMethod · 0.95

Calls 5

evaluatePipelineIfdefMethod · 0.95
writeBlockMethod · 0.95
evaluateAccessIfdefMethod · 0.95
itemsMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected