Command generation.
(self, cmdinfo, name, alias)
| 1640 | return lines |
| 1641 | |
| 1642 | def genCmd(self, cmdinfo, name, alias): |
| 1643 | """Command generation.""" |
| 1644 | OutputGenerator.genCmd(self, cmdinfo, name, alias) |
| 1645 | |
| 1646 | # @@@ (Jon) something needs to be done here to handle aliases, probably |
| 1647 | |
| 1648 | validity = self.makeValidityCollection(name) |
| 1649 | |
| 1650 | # OpenXR-only: make sure extension is enabled |
| 1651 | # validity.possiblyAddExtensionRequirement(self.currentExtension, 'calling flink:') |
| 1652 | |
| 1653 | validity += self.makeStructOrCommandValidity( |
| 1654 | cmdinfo.elem, name, cmdinfo.getParams()) |
| 1655 | |
| 1656 | threadsafety = self.makeThreadSafetyBlock(cmdinfo.elem, 'param') |
| 1657 | commandpropertiesentry = None |
| 1658 | |
| 1659 | # Vulkan-specific |
| 1660 | commandpropertiesentry = self.makeCommandPropertiesTableEntry( |
| 1661 | cmdinfo.elem, name) |
| 1662 | conditionalrendering = cmdinfo.elem.get('conditionalrendering') |
| 1663 | successcodes = self.makeSuccessCodes(cmdinfo.elem, name) |
| 1664 | errorcodes = self.makeErrorCodes(cmdinfo.elem, name) |
| 1665 | |
| 1666 | # OpenXR-specific |
| 1667 | # self.generateStateValidity(validity, name) |
| 1668 | |
| 1669 | self.writeInclude('protos', name, validity, |
| 1670 | threadsafety, |
| 1671 | commandpropertiesentry, |
| 1672 | conditionalrendering, |
| 1673 | successcodes, |
| 1674 | errorcodes) |
| 1675 | |
| 1676 | def genStruct(self, typeinfo, typeName, alias): |
| 1677 | """Struct Generation.""" |
nothing calls this directly
no test coverage detected