Skip to content
Sergio Pedri edited this page Nov 24, 2023 · 15 revisions

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! πŸš€

What can it do? ✨

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! πŸ™Œ

Try out the sample app! πŸ’»

The sample app is available in the Microsoft Store, showcasing several pixel shaders all powered by ComputeSharp!

Get it from Microsoft

Requirements πŸ“

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