Ahjo.Wgpu.Native 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ahjo.Wgpu.Native --version 0.1.1
                    
NuGet\Install-Package Ahjo.Wgpu.Native -Version 0.1.1
                    
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="Ahjo.Wgpu.Native" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ahjo.Wgpu.Native" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Ahjo.Wgpu.Native" />
                    
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 Ahjo.Wgpu.Native --version 0.1.1
                    
#r "nuget: Ahjo.Wgpu.Native, 0.1.1"
                    
#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 Ahjo.Wgpu.Native@0.1.1
                    
#: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=Ahjo.Wgpu.Native&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Ahjo.Wgpu.Native&version=0.1.1
                    
Install as a Cake Tool

Ahjo.Wgpu.Native

Raw P/Invoke bindings for wgpu-native, generated from the canonical webgpu.h / wgpu.h headers via ClangSharp. 1:1 with the C ABI.

Ships the native runtime binary for every supported RID under runtimes/<rid>/native/ — no separate per-platform package to reference, no runtime configuration, DllImport("wgpu_native") just resolves.

Most people want Ahjo.Wgpu instead

This package exposes the raw C ABI: function pointers, unsafe WGPU*Descriptor structs, WGPUStringView byte spans, manual handle release. Useful if you want to write your own wrapper on top, or fine-tune at the ABI layer.

If you just want to use WebGPU from C#, install Ahjo.Wgpu — it takes a dependency on this package and layers an idiomatic ref struct-based API on top.

Install

dotnet add package Ahjo.Wgpu.Native

Bundled platforms

RID Binary
win-x64 wgpu_native.dll
win-arm64 wgpu_native.dll
linux-x64 libwgpu_native.so
linux-arm64 libwgpu_native.so
osx-x64 libwgpu_native.dylib
osx-arm64 libwgpu_native.dylib

TFM: net11.0. Native ABI tracks the pinned wgpu-native release version; bumps to the upstream are minor-version bumps here.

Status

Pre-1.0. The managed surface is generated and stable per wgpu-native release, but extension points (chain structs, new feature flags) may shift as upstream evolves.

Repository

Source, issues, generator response file (tools/generate.rsp), regeneration instructions: https://github.com/pekkah/wgpu-sharp

License

MIT. © Pekka Heikura. wgpu-native itself is licensed Apache-2.0 OR MIT.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net11.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Ahjo.Wgpu.Native:

Package Downloads
Ahjo.Wgpu

Idiomatic C# wrapper over wgpu-native: ref-struct encoders, struct handles, polled futures, zero-per-frame allocations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 122 4/26/2026
0.5.0 108 4/25/2026
0.4.0 106 4/25/2026
0.3.1 107 4/22/2026
0.3.0 103 4/21/2026
0.2.0 110 4/21/2026
0.1.1 101 4/21/2026
0.1.0 96 4/21/2026