Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Vulkan have a TransformFeedback equivalent

Tags:

vulkan

Does Vulkan have support for saving the vertices output from a pipeline stage? I've been looking and I can't find any examples or references, maybe someone else knows otherwise?

like image 738
Andrew Williamson Avatar asked Jun 24 '16 10:06

Andrew Williamson


1 Answers

Transform Feedback didn't make the cut for the initial Vulkan release, and there is no direct equivalent to it.

So you actually have to do it yourself by e.g. writing to a SSBO from a geometry shader using PrimitiveIDs or go with compute shaders.

Note that the geometry shader version might not work on all devices, as it requires support for the vertexPipelineStoresAndAtomics feature.

Update

Support for TransformFeedback has been made available as an extension since 1.1.88.

like image 197
Sascha Willems Avatar answered Sep 21 '22 18:09

Sascha Willems