Ahjo.Wgpu.Native
0.4.0
See the version list below for details.
dotnet add package Ahjo.Wgpu.Native --version 0.4.0
NuGet\Install-Package Ahjo.Wgpu.Native -Version 0.4.0
<PackageReference Include="Ahjo.Wgpu.Native" Version="0.4.0" />
<PackageVersion Include="Ahjo.Wgpu.Native" Version="0.4.0" />
<PackageReference Include="Ahjo.Wgpu.Native" />
paket add Ahjo.Wgpu.Native --version 0.4.0
#r "nuget: Ahjo.Wgpu.Native, 0.4.0"
#:package Ahjo.Wgpu.Native@0.4.0
#addin nuget:?package=Ahjo.Wgpu.Native&version=0.4.0
#tool nuget:?package=Ahjo.Wgpu.Native&version=0.4.0
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: net10.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 | Versions 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. |
-
net10.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.