def writeStructTraitsImpl(api, filename):

    def gen():
        for type in api.compositeTypes:
            if ((type.getClassName() == 'struct') and (type.members[0].name == 'sType') and (not type.isAlias)):
                (yield ('template<> VkStructureType getStructureType<%s> (void)' % type.name))
                (yield '{')
                (yield ('\treturn %s;' % prefixName('VK_STRUCTURE_TYPE_', type.name)))
                (yield '}')
                (yield '')
    writeInlFile(filename, INL_HEADER, gen())
def writeStructTraitsImpl(api, filename):

    def gen():
        for type in api.compositeTypes:
            if ((type.getClassName() == 'struct') and (type.members[0].name == 'sType') and (not type.isAlias)):
                (yield ('template<> VkStructureType getStructureType<%s> (void)' % type.name))
                (yield '{')
                (yield ('\treturn %s;' % prefixName('VK_STRUCTURE_TYPE_', type.name)))
                (yield '}')
                (yield )
    writeInlFile(filename, INL_HEADER, gen())