Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
1–10 of 13 posts
Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#2Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#3Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#4OP here. This is a small code example of how to use Vulkan for compute operations. Only ~400LOC. It's pretty short, and has plenty of comments, so it should be useful for people learning Vulkan, I hope.
[0] https://github.com/KhronosGroup/Khronosdotorg/blob/master/ap...
Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#5I haven't used GPGPU in a while. Is Vulkan expected to take over from OpenCL?
Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#6I haven't used GPGPU in a while. Is Vulkan expected to take over from OpenCL?
Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#7For example, say I don't need to optimize my command submittal, or I just want the main device. Or maybe my common use case is a compute shader just like the program submitted in this Hacker News post. I would want a class that just exposed a simple API like runComputeShader() or something.
Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#8I haven't used GPGPU in a while. Is Vulkan expected to take over from OpenCL?
Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#9OP here. This is a small code example of how to use Vulkan for compute operations. Only ~400LOC. It's pretty short, and has plenty of comments, so it should be useful for people learning Vulkan, I hope.
Might wanna open a PR to add your sample to the list of Vulkan resources too, under samples and demos [0]. [0] https://github.com/KhronosGroup/Khronosdotorg/blob/master/ap...
Re: Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
#10I haven't used GPGPU in a while. Is Vulkan expected to take over from OpenCL?