News for hackers. Stuff that matters.
Re:ComputeSharp, Run C# on the GPU by CyanLite2 on Tuesday February 23, 2021 @06:35PM (#26244536)
Are there some easy-to-understand samples? I looked in the samples directory and only saw how to do bokeh blur.

I was looking for something a little simpler... I have two large arrays and I want to do simple mathematical operations on them.

Re:ComputeSharp, Run C# on the GPU by Sergio0694 on Tuesday February 23, 2021 @06:54PM (#26244692)
I have some more samples in the other folders, and I will also include some snippets in the updated docs (need to finish writing them and include them in the dev branch). Here's a couple examples:

Super simple, complete examples of a shader that just multiplies all items in a buffer by 2: https://github.com/Sergio0694/ComputeSharp/blob/dev/samples/...

Simple naive matrix-multiply-add shader: https://github.com/Sergio0694/ComputeSharp/blob/ada133aacd29...

Let me know if those help, and feel free to ping me on GitHub or in the C# Discord server if you have any issues!