Esempio n. 1
0
    def __init__(self,
                 processCmds,
                 processStructs,
                 featureBreak=True,
                 errFile=sys.stderr,
                 warnFile=sys.stderr,
                 diagFile=sys.stdout):
        OutputGenerator.__init__(self, errFile, warnFile, diagFile)

        # Typenames
        self.structNames = set()  # Set of Vulkan struct typenames
        self.handleNames = set()  # Set of Vulkan handle typenames
        self.flagsTypes = dict(
        )  # Map of flags types to base flag type (VkFlags or VkFlags64)
        self.enumNames = set()  # Set of Vulkan enumeration typenames

        # Type processing options
        self.processCmds = processCmds  # Populate the featureCmdParams map
        self.processStructs = processStructs  # Populate the featureStructMembers map
        self.featureBreak = featureBreak  # Insert a line break between features

        # Command parameter and struct member data for the current feature
        if self.processStructs:
            self.featureStructMembers = dict(
            )  # Map of struct names to lists of per-member ValueInfo
            self.featureStructAliases = dict(
            )  # Map of struct names to aliases
            self.extensionStructsWithHandles = dict(
            )  # Map of extension struct names to a Boolean value indicating that a struct member has a handle type
            self.extensionStructsWithHandlePtrs = dict(
            )  # Map of extension struct names to a Boolean value indicating that a struct member with a handle type is a pointer
        if self.processCmds:
            self.featureCmdParams = dict(
            )  # Map of cmd names to lists of per-parameter ValueInfo
Esempio n. 2
0
 def __init__(self,
              errFile=sys.stderr,
              warnFile=sys.stderr,
              diagFile=sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)
     # Keep track of all extension numbers
     self.extension_numbers = set()
    def __init__(self,
                 processCmds,
                 processStructs,
                 featureBreak=True,
                 errFile=sys.stderr,
                 warnFile=sys.stderr,
                 diagFile=sys.stdout):
        OutputGenerator.__init__(self, errFile, warnFile, diagFile)

        # Typenames
        self.structNames = set()  # Set of Vulkan struct typenames
        self.handleNames = set()  # Set of Vulkan handle typenames
        self.flagsNames = set()  # Set of bitmask (flags) typenames
        self.enumNames = set()  # Set of Vulkan enumeration typenames

        # Type processing options
        self.processCmds = processCmds  # Populate the featureCmdParams map
        self.processStructs = processStructs  # Populate the featureStructMembers map
        self.featureBreak = featureBreak  # Insert a line break between features

        # Command parameter and struct member data for the current feature
        if self.processStructs:
            self.featureStructMembers = dict(
            )  # Map of struct names to lists of per-member ValueInfo
            self.featureStructAliases = dict(
            )  # Map of struct names to aliases
        if self.processCmds:
            self.featureCmdParams = dict(
            )  # Map of cmd names to lists of per-parameter ValueInfo
Esempio n. 4
0
 def __init__(self,
              errFile = sys.stderr,
              warnFile = sys.stderr,
              diagFile = sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)
     # Keep track of all extension numbers
     self.extension_numbers = set()
Esempio n. 5
0
 def __init__(self,
              errFile = sys.stderr,
              warnFile = sys.stderr,
              diagFile = sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)
     # Internal state - accumulators for different inner block text
     self.sections = {section: [] for section in self.ALL_SECTIONS}
     self.feature_not_empty = False
     self.may_alias = None
Esempio n. 6
0
 def __init__(self,
              errFile = sys.stderr,
              warnFile = sys.stderr,
              diagFile = sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)
     self.extensions = []
     # List of strings containing all vendor tags
     self.vendor_tags = []
     self.file_suffix = ''
 def __init__(self,
              errFile = sys.stderr,
              warnFile = sys.stderr,
              diagFile = sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)
     self.extensions = []
     # List of strings containing all vendor tags
     self.vendor_tags = []
     self.file_suffix = ''
Esempio n. 8
0
 def __init__(self,
              errFile = sys.stderr,
              warnFile = sys.stderr,
              diagFile = sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)
     # Internal state - accumulators for different inner block text
     self.sections = {section: [] for section in self.ALL_SECTIONS}
     self.feature_not_empty = False
     self.need_platform_include = False
     self.may_alias = None
Esempio n. 9
0
 def __init__(self,
              errFile = sys.stderr,
              warnFile = sys.stderr,
              diagFile = sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)
 def __init__(self,
              errFile=sys.stderr,
              warnFile=sys.stderr,
              diagFile=sys.stdout):
     OutputGenerator.__init__(self, errFile, warnFile, diagFile)