4 ms·
Is there any point in switching to mesh shaders if I don't have any use for the flexibility they provide? For example, do the new semantics allow faster executi
by tambre 4y ago
Is there any point in switching to mesh shaders if I don't have any use for the flexibility they provide? For example, do the new semantics allow faster execution on newer hardware for converted boring vertex shaders?
- corysama 4y agoNope. They don't make anything faster by themselves if you stick to doing the same work the same way as vertex shaders. What they do is open up a lot more options for you to do something differently that can work better for your situation.
- phire 4y agoMy understanding is that if you are just doing the exact same work that regular vertex shaders would do, you are better off sticking with the regular pipeline. Might even be faster, since the old pipeline (potentially, depending on implementation) has a bunch of fixed-function hardware that gets disabled for mesh shaders. The preformance advantages only come when you can take advantage of the flexibility to apply new optimisations. Such as sharing work across a mesh invocation, or avoiding launching mesh invocations from task/amplification shaders, or avoiding vertex fetch (procedural generation).