SpawnDev.ILGPU.WebGPU 1.0.0-preview.2

This is a prerelease version of SpawnDev.ILGPU.WebGPU.
There is a newer version of this package available.
See the version list below for details.
dotnet add package SpawnDev.ILGPU.WebGPU --version 1.0.0-preview.2
                    
NuGet\Install-Package SpawnDev.ILGPU.WebGPU -Version 1.0.0-preview.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SpawnDev.ILGPU.WebGPU" Version="1.0.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SpawnDev.ILGPU.WebGPU" Version="1.0.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="SpawnDev.ILGPU.WebGPU" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SpawnDev.ILGPU.WebGPU --version 1.0.0-preview.2
                    
#r "nuget: SpawnDev.ILGPU.WebGPU, 1.0.0-preview.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SpawnDev.ILGPU.WebGPU@1.0.0-preview.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SpawnDev.ILGPU.WebGPU&version=1.0.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SpawnDev.ILGPU.WebGPU&version=1.0.0-preview.2&prerelease
                    
Install as a Cake Tool

SpawnDev.ILGPU.WebGPU

SpawnDev.ILGPU.WebGPU provides WebGPU support for ILGPU, enabling GPU compute in Blazor WebAssembly applications.

Features

  • GPU compute in Blazor WebAssembly applications
  • WebGPU backend for ILGPU
  • JIT (just-in-time) compiler for high-performance GPU programs written in .Net-based languages
  • Entirely written in C# without any native dependencies
  • Offers the flexibility and the convenience of C++ AMP on the one hand and the high performance of Cuda programs on the other hand
  • Functions in the scope of kernels do not have to be annotated (default C# functions) and are allowed to work on value types
  • All kernels (including all hardware features like shared memory and atomics) can be executed and debugged on the CPU using the integrated multi-threaded CPU accelerator

SpawnDev.ILGPU.WebGPU.Demo

  • The demo application is located in the SpawnDev.ILGPU.WebGPU.Demo directory.
  • The unit test app tests can be ran by starting the SpawnDev.ILGPU.WebGPU.Demo project and goiong to the '/tests' page.
  • The demo application showcases the capabilities of SpawnDev.ILGPU.WebGPU by running various GPU compute tasks in a Blazor WebAssembly environment.
  • The PlaywrightTestRunner can be used to run the unit tests in a headless browser environment.

PlaywrightTestRunner

  • PlaywrightTestRunner is located in the PlaywrightTestRunner directory and allows running unit tests in a headless browser environment.
  • Build and run Playwright .Net unit tests using _test.bat or _test.sh.
  • Tests are run in a headless browser. To enable the browser to be visible, modify PlaywrightTestRunner/GlobalSetup.cs and uncomment the line Environment.SetEnvironmentVariable("HEADED", "1");.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 42 2/7/2026
1.2.0 33 2/6/2026
1.1.0 29 2/6/2026
1.0.0 36 2/6/2026
1.0.0-preview.5 45 2/6/2026
1.0.0-preview.4 33 2/6/2026
1.0.0-preview.3 32 2/5/2026
1.0.0-preview.2 38 2/5/2026
1.0.0-preview.1 38 2/5/2026