parameters: (self, elem)
docstring: feature name string (e.g. 'VK_KHR_surface')
docstring_summary: feature name string (e.g. 'VK_KHR_surface')
docstring_tokens: feature name string ( e . g . VK_KHR_surface )
function: def __init__(self, elem):
          BaseInfo.__init__(self, elem)
          self.name = elem.get('name')
          "feature name string (e.g. 'VK_KHR_surface')"
  
          self.emit = False
          "has this feature been defined already?"
  
          self.sortorder = int(elem.get('sortorder', 0))
          """explicit numeric sort key within feature and extension groups.
          Defaults to 0."""
  
          # Determine element category (vendor). Only works
          # for <extension> elements.
          if elem.tag == 'feature':
              # Element category (vendor) is meaningless for <feature>
              self.category = 'VERSION'
              """category, e.g. VERSION or khr/vendor tag"""
  
              self.version = elem.get('name')
              """feature name string"""
  
              self.versionNumber = elem.get('number')
              """versionNumber - API version number, taken from the 'number'
                 attribute of <feature>. Extensions do not have API version
                 numbers and are assigned number 0."""
  
              self.number = "0"
              self.supported = None
          else:
              # Extract vendor portion of <APIprefix>_<vendor>_<name>
              self.category = self.name.split('_', 2)[1]
              self.version = "0"
              self.versionNumber = "0"
              self.number = elem.get('number')
              """extension number, used for ordering and for assigning
              enumerant offsets. <feature> features do not have extension
              numbers and are assigned number 0."""
  
              # If there's no 'number' attribute, use 0, so sorting works
              if self.number is None:
                  self.number = 0
              self.supported = elem.get('supported')
function_tokens: def __init__ ( self , elem ) : BaseInfo . __init__ ( self , elem ) self . name = elem . get ( 'name' ) self . emit = False "has this feature been defined already?" self . sortorder = int ( elem . get ( 'sortorder' , 0 ) ) """explicit numeric sort key within feature and extension groups.
          Defaults to 0.""" # Determine element category (vendor). Only works # for <extension> elements. if elem . tag == 'feature' : # Element category (vendor) is meaningless for <feature> self . category = 'VERSION' """category, e.g. VERSION or khr/vendor tag""" self . version = elem . get ( 'name' ) """feature name string""" self . versionNumber = elem . get ( 'number' ) """versionNumber - API version number, taken from the 'number'
                 attribute of <feature>. Extensions do not have API version
                 numbers and are assigned number 0.""" self . number = "0" self . supported = None else : # Extract vendor portion of <APIprefix>_<vendor>_<name> self . category = self . name . split ( '_' , 2 ) [ 1 ] self . version = "0" self . versionNumber = "0" self . number = elem . get ( 'number' ) """extension number, used for ordering and for assigning
              enumerant offsets. <feature> features do not have extension
              numbers and are assigned number 0.""" # If there's no 'number' attribute, use 0, so sorting works if self . number is None : self . number = 0 self . supported = elem . get ( 'supported' )