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

Method genCmd

scripts/docgenerator.py:603–612  ·  view source on GitHub ↗

Generate command.

(self, cmdinfo, name, alias)

Source from the content-addressed store, hash-verified

601 self.writeInclude('enums', name, body, self.deprecatedBy(enuminfo), enuminfo.deprecatedlink, enuminfo.supersededby)
602
603 def genCmd(self, cmdinfo, name, alias):
604 "Generate command."
605 OutputGenerator.genCmd(self, cmdinfo, name, alias)
606
607 body = self.genRequirements(name)
608 if alias and self.registry.cmddict[alias].required:
609 body += f'// Equivalent to {alias}\n'
610 decls = self.makeCDecls(cmdinfo.elem)
611 body += decls[0]
612 self.writeInclude('protos', name, body, self.deprecatedBy(cmdinfo), cmdinfo.deprecatedlink, cmdinfo.supersededby)

Callers

nothing calls this directly

Calls 4

genRequirementsMethod · 0.95
writeIncludeMethod · 0.95
deprecatedByMethod · 0.95
makeCDeclsMethod · 0.80

Tested by

no test coverage detected