def getType(self):
    if (self.name == 'vkGetInstanceProcAddr'):
        return Function.TYPE_PLATFORM
    assert (len(self.arguments) > 0)
    firstArgType = self.arguments[0].getType()
    if (firstArgType in ['VkInstance', 'VkPhysicalDevice']):
        return Function.TYPE_INSTANCE
    elif (firstArgType in ['VkDevice', 'VkCommandBuffer', 'VkQueue']):
        return Function.TYPE_DEVICE
    else:
        return Function.TYPE_PLATFORM
def getType(self):
    if (self.name == 'vkGetInstanceProcAddr'):
        return Function.TYPE_PLATFORM
    assert (len(self.arguments) > 0)
    firstArgType = self.arguments[0].getType()
    if (firstArgType in ['VkInstance', 'VkPhysicalDevice']):
        return Function.TYPE_INSTANCE
    elif (firstArgType in ['VkDevice', 'VkCommandBuffer', 'VkQueue']):
        return Function.TYPE_DEVICE
    else:
        return Function.TYPE_PLATFORM