Skip to content

2. NuGet packages πŸ“¦

Sergio Pedri edited this page Nov 24, 2023 · 3 revisions

Here is all the available ComputeSharp NuGet packages:

Name Description Latest version
ComputeSharp The core library, with compiled shaders support NuGet
ComputeSharp.D3D12MemoryAllocator An extension library for ComputeSharp, adding D3D12MA as the memory allocator for graphics resources. NuGet
ComputeSharp.Dxc An extension library for ComputeSharp, bundling the DXC compiler and enabling shader reflection NuGet
ComputeSharp.Pix An extension library for ComputeSharp, enabling PIX support to produce debugging information NuGet
ComputeSharp.WinUI A WinUI 3 library (targeting .NET 6) with controls to render DX12 shaders powered by ComputeSharp NuGet
ComputeSharp.D2D1 A library to write D2D1 pixel shaders entirely with C# code, and to easily register and create ID2D1Effect-s from them NuGet
ComputeSharp.D2D1.WinUI A WinUI 3 library with custom effects for Win2D powered by ComputeSharp.D2D1 NuGet

Installing from NuGet βš™οΈ

To install ComputeSharp, run the following command in the Package Manager Console

Install-Package ComputeSharp

Alternatively, use the NuGet package manager wizard in Visual Studio or your IDE of choice.

More details available here.

Preview packages πŸŒ™

Preview packages for ComputeSharp are available on the preview feed https://pkgs.computesharp.dev/index.json.

To access these previews, you can simply ensure you have the "Include prerelease" checkbox checked in Visual Studio. This will search and display any preview packages in the version dropdown for ComputeSharp. The -alpha suffix is typically used for any of these releases. Additionally, you can reference this docs for information on how to configure an additional NuGet source, which is necessary to access preview packages from the preview feed.