MCPcopy Index your code
hub / github.com/KhronosGroup/Vulkan-Docs / writeBox

Method writeBox

scripts/docgenerator.py:368–379  ·  view source on GitHub ↗

Write a generalized block/box for some values.

(self, filename, prefix, items)

Source from the content-addressed store, hash-verified

366 write(_TABLE_SUFFIX, file=fp)
367
368 def writeBox(self, filename, prefix, items):
369 """Write a generalized block/box for some values."""
370 self.logMsg('diag', '# Generating include file:', filename)
371
372 with open(filename, 'w', encoding='utf-8') as fp:
373 write(self.conventions.warning_comment, file=fp)
374 write(prefix, file=fp)
375
376 for item in items:
377 write(f"* {item}", file=fp)
378
379 write(_BLOCK_SUFFIX, file=fp)
380
381 def writeEnumBox(self, basename, values):
382 """Output a box of enumerants."""

Callers 2

writeEnumBoxMethod · 0.95
writeFlagBoxMethod · 0.95

Calls 2

writeFunction · 0.90
logMsgMethod · 0.80

Tested by

no test coverage detected