3 ms·
Why would you want that exactly rather than CUDA or OpenCL? Although I haven't written a compute shader yet, compute in Vulkan looks trivial to use once you ha
by gmueckl 9y ago
Why would you want that exactly rather than CUDA or OpenCL?
Although I haven't written a compute shader yet, compute in Vulkan looks trivial to use once you have waged your initial battles against the rendering pipeline setup. Most of the complexity with Vulkan lies in understanding descriptor sets, pipeline layouts and pipeline objects. I find that the Vulkan interface is remarkably consistent once you get over the initial - and substantial - hurdles.
- tpxl 9y agoOpenCL is merging into Vulkan: https://www.pcper.com/reviews/General-Tech/Breaking-OpenCL-Merging-Roadmap-Vulkan https://www.pcper.com/reviews/General-Tech/Breaking-OpenCL-M...
- gmueckl 9y agoIt is unclear to me whether the target of the statement is runtime interop between OpenCL and Vulkan or something else, like implementing (a subset of) OpenCL on top of Vulkan. I have not seen statements recently from Khronos that would hint at the later.
- tpxl 9y ago>The OpenCL working group has taken the decision to converge its roadmap with Vulkan, and use Vulkan as the basis for the next generation of explicit compute APIs – this also provides the opportunity for the OpenCL roadmap to merge graphics and compute. From the article suggests at some point OpenCL is going to run on top of Vulkan.
- gmueckl 9y agoIf you ask me, the article is trying to interpret intentionally vague marketing speak in a very specific way. But that is only my opinion.
- sydd 9y agoBecause Vulkan is cross-device, cross-platform. I dont want to tied to the Desktop or to Nvidia. Vulkan Compute shaders work in recent Android devices and on every Windows/Linux PC that has a <5 year old dedicated GPU. And for iOS/OSX there is an interop layer in the works that will enable Vulkan over Metal.
- gmueckl 9y agoApple has direct support for OpenCL. Why would you want to use a Metal wrapper instead?
- pjmlp 9y ago> Vulkan Compute shaders work in recent Android devices Actually no. Vulkan is an optional API, so unless we are talking about Samsung and Google flagships phones, there is no guarantee of it being available. So far Google hasn't even bothered to add it to the dashboards. For compute, only Renderscript is required.