ComputeSharp is a .NET library to run C# code in parallel on the GPU through DX12 and dynamically generated HLSL compute shaders. The available APIs let you access GPU devices, allocate GPU buffers and textures, move data between them and the RAM, write compute shaders entirely in C# and have them run on the GPU. The goal of this project is to make GPU computing easy to use for all .NET developers! You can use this library to create all sorts of things from scientific simulations, to animated backgrounds, audio visualizers and more! The sample app is available in the Microsoft Store, showcasing several pixel shaders all powered by ComputeSharp! In order to also build and run all UWP and WinUI 3 projects, these components need to be installed, UWP development workload, Windows 10 SDKs 17763 and 19041, and Windows App SDK extension for VS2022.
Features
- The sample app is available in the Microsoft Store
- Compiled shaders support
- Extension for ComputeSharp, enabling dynamic shader compilation at runtime and shader metaprogramming
- UWP library (targeting .NET Standard 2.0) with controls to render DX12 shaders powered by ComputeSharp
- WinUI 3 library (targeting .NET 6) with controls to render DX12 shaders powered by ComputeSharp
- A library to write D2D1 pixel shaders entirely with C# code, and to easily register and create ID2D1Effect-s from them