Transform Feedback did not make a cut for the initial release of Vulkan, and there is no direct equivalent to it.
So you really need to do this yourself, for example. writing SSBOs from a geometric shader using PrimitiveID, or go to computational shaders.
Please note that the geometry shader version may not work on all devices, as it requires support for the vertexPipelineStoresAndAtomics function .