ComputeSharp
ILGPU
ComputeSharp | ILGPU | |
---|---|---|
38 | 6 | |
2,564 | 1,069 | |
- | - | |
9.8 | 9.0 | |
1 day ago | 9 days ago | |
C# | C# | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ComputeSharp
-
ILGPU VS ComputeSharp - a user suggested alternative
2 projects | 27 Oct 2023
-
Is there a real time graphics llibrary in c#
A couple other options than what has been suggested so far: - TerraFX.Interop.Windows. Raw, blittable, 1:1 bindings for all Win32, D2D/D3D11/D3D12 APIs (there's also a version with Vulkan bindings). As close to doing #include as you can get in C#. This is my personal favorite, I use it in my own ComputeSharp library, and transitively we use it in the Microsoft Store too 🙂 - Silk.NET another version of high-performance bindings, more opinionated than TerraFX and with some additional helpers to make it a bit easier to use.
-
What can Go do that C# can't?
A hello world .NET console app with NativeAOT is 1.08 MB. Goes down to 1.08 MB with some tweaking. Goes below 1MB with more tweaking. I have a fully self-contained NativeAOT sample app that renders some fancy animated shaders with DX12 that's about 2MB in size.
-
C# and GPU programming
I dont think it's exactly what you're looking for, but I've found ComputeSharp to be a great C# GPU tool
-
Source Generator Debug always NulLReferecneException
Here's some: - MVVM Toolkit - PolySharp - ComputeSharp
- Rust bindings for Avalonia UI Framework
- [WinUI] High level 2D rendering library
-
What library should I use to make basic 2D graphics which is simple to use and that is able to quickly draw a bunch of particles (circles) on the screen with updating positions every frame? (Not the best description ever. I explain it better in the post's text)
If you don't mind being Windows only, I would also recommend trying out (shameless plug) ComputeSharp. You can find it on NuGet and it's available for UWP and WinUI 3 as well with ready to use XAML controls. The point is that it would allow you do your entire rendering via pixel/compute shaders, so it could basically run entirely on the GPU. That'd allow you to render even millions of particles with pretty good performance 🙂
-
What library to code a Screensaver?
Create a UWP or WinUI 3 applicaation and use the AnimatedComputeShaderPanel from ComputeSharp. The library lets you write shaders (ie. code to run on the GPU) entirely in C#, and handles all the logic to setup a DX12 animated swapchain, similar to Win2D. If you look at the repo you can also see a whole bunch of examples, which you can also try out for yourself. There's also several wiki pages with lots of info.
- GitHub - ComputeSharp: A .NET library to run C# code on the GPU through DX12 (Not Godot)
ILGPU
-
ILGPU VS ComputeSharp - a user suggested alternative
2 projects | 27 Oct 2023
-
CUDA integration for C#
I've had a good experience with ILGPU: clean API, loads of samples, nice community. Apologies for a shameless plug, but I used it in one of my projects and happened to write a blog post about it: https://timiskhakov.github.io/posts/computing-the-convex-hull-on-gpu. Hope it helps!
-
Is there a way to utilize the gpu in a C# program?
https://github.com/Sergio0694/ComputesSharp is always being recommended to me. But I also just found this one https://github.com/m4rs-mt/ILGPU which looks very interesting. There are a lot of libraries which allow you to execute on the gpu
-
Is there a way to run metal shaders on CPU threads?
I would checkout the github for more details, or ask on the discord for more specifics, but all the kernels are compiled into IL by the C# compiler, then at runtime the ILGPU compiler converts them from IL into PTX, OpenCL, or back into IL (in a special way to maintain thread grouping and stuff). Then PTX / OpenCL /IL is compiled and run using the respective runtimes. Cuda for PTX, the OpenCL runtime for OpenCL, and .net for IL. We have talked about creating a CPU execution path that tries to match speeds with CPU code, but I do not think it is a big priority.
-
What is ILGPU | Links | FAQ
Github repo
What are some alternatives?
ShaderGen - Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,
CUDAfy.NET - CUDAfy .NET allows easy development of high performance GPGPU applications completely from the .NET. It's developed in C#.
raylib - A simple and easy-to-use library to enjoy videogames programming
NvAPIWrapper - NvAPIWrapper is a .Net wrapper for NVIDIA public API, capable of managing all aspects of a display setup using NVIDIA GPUs
CSharp-Unity-Compute-Shader - Create compute shaders for Unity with C#.
ZenTimings
BrimsonFX - Image and video processing shaders for ReShade (convolutions, GPU Horn-Schunk/Lucas-Kanade, etc.)
Hybridizer - Examples of C# code compiled to GPU by hybridizer
SharpDX
Amplifier.NET - Amplifier allows .NET developers to easily run complex applications with intensive mathematical computation on Intel CPU/GPU, NVIDIA, AMD without writing any additional C kernel code. Write your function in .NET and Amplifier will take care of running it on your favorite hardware.
dotnet - .NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
arrayfire-rust - Rust wrapper for ArrayFire