# Sergio0694/ComputeSharp

A .NET library to run C# code in parallel on the GPU through DX12, D2D1, and dynamically generated HLSL compute and pixel shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀

Repository: https://github.com/Sergio0694/ComputeSharp
Canonical: https://ross.abutalabs.com/products/computesharp
Language: C#
License: MIT
License Family: permissive
Topics: csharp, netstandard, directx, gpu, hlsl, hlsl-shader, visual-studio, library, performance, gpgpu, computing, shader, nuget, d2d1, dotnet, uwp, winui, winui3, xaml
Last push: 2026-08-13T21:44:22+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 28, longevity 100
- inputs: {"age_days": 2580, "days_push": 20, "days_rel": 507, "gap_med": 55.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3161, forks 150 (observed 2026-08-28T04:07:46.524922+00:00)

## What it is
ComputeSharp is a .NET library that lets developers write compute and pixel shaders in C# and run them in parallel on the GPU via DirectX 12 and Direct2D1, with HLSL code generated dynamically. It aims to make GPU computing accessible to all .NET developers and is used in production by apps like Microsoft Store and Paint.NET.

## Use cases
- run C# code in parallel on the GPU
- write compute shaders in C# without HLSL
- create custom D2D1 pixel shader effects for image editing
- build scientific simulations accelerated by the GPU
- render animated backgrounds and audio visualizers
- accelerate image processing effects in Windows apps

## When to choose
- you're a .NET developer wanting GPU acceleration without writing raw HLSL
- you need custom pixel shader effects in WinUI/UWP or Direct2D1 apps
- you want to offload parallel numeric workloads to the GPU from C#

## When to avoid
- you need cross-platform GPU compute (it targets Windows/DirectX only)
- you're not on the .NET ecosystem
- you need OpenGL, Vulkan, or Metal support

## Facets
- artifact type: library
- maturity: stable
- function: gpu-computing, graphics, image-processing, simulation
- domain: gpu-computing, graphics, image-processing, developer-tools
- platform: windows, dotnet, cpp
- tags: hlsl, directx12, compute-shaders, pixel-shaders, gpgpu, d2d1, winui, csharp

## Member repositories
- Sergio0694/ComputeSharp (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:46.524922+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:13.718872+00:00, confidence not recorded.
  - readme: https://github.com/Sergio0694/ComputeSharp (fetched 2026-08-28T04:07:46.524922+00:00, sha 50e292686f81)
- Data as of 2026-08-30T08:39:29.467469+00:00.
