-
-
Notifications
You must be signed in to change notification settings - Fork 124
Home
Welcome to the ComputeSharp wiki! ComputeSharp is a .NET library to run C# code in parallel on the GPU through DX12 or D2D1 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! π
Since an image is worth a thousand words, here's a screenshot of one of the pixel shaders (originally from shadertoy.com), ported from GLSL to C# and running with ComputeSharp in a WinUI 3 sample app. 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!
Building and running ComputeSharp from the .NET solution filter has the following prerequisites:
- Visual Studio 2022 17.8 (or just the .NET 8 SDK)
- Windows x64 or ARM64
Additionally, in order to also build and run all WinUI 3 projects, these components need to be installed:
- Windows 10 22621 SDK
- Windows App SDK extension for VS2022