Home

Awesome

WGPU.NET

Nuget GitHub forks GitHub Repo stars

WGPU.NET is a library providing cross-platform raw bindings and optional wrappers for wgpu-native, allowing you to interact with your GPU using a flexible and efficient graphics API.

WGPU.NET targets .NET Standard 2.0.

Usage

WGPU.NET is offered as a NuGet package here. Just install it and you're ready to go.

This library is purely graphics-oriented and does not provide utilities for creating windows. I recommend using Silk.NET's GLFW bindings if you need windowing, but you can use anything you like as long as it can provide raw window handles.

Check out the usage example here for a demonstration on using WGPU.NET.

If you run into problems using WGPU.NET, please open an issue.

Building

This repository contains 3 projects:

If you want to compile the bindings on your own, build and run BindingsGenerator, and copy its output source file into the WGPU project, then compile the WGPU project.