GitXplorerGitXplorer
e

HelloWebGPU.Net

public
13 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
7f74c5c470e4eda88409dcd629900af2140809de

minor code comments

eemepetres committed 4 years ago
Unverified
3fbc98a4f2f2d495d7711043ab0242b35c59c400

IndexBuffer -> IndexBufferWithFormat

eemepetres committed 4 years ago
Unverified
d36d90e533b67b7b63ae565d7d57f85beb5e2f7e

Updated binding. Updated Dawn. C api improved.

eemepetres committed 4 years ago
Unverified
a6a025898a8803542c3621abf1d0130a8d28f783

docs: Readme, scripts & License

eemepetres committed 4 years ago
Unverified
b69bcb0205879870bd8f94b7394bfe31f4af3d21

Removed x86 architecture from dawn api

eemepetres committed 4 years ago
Unverified
150011fbdcc54b23e4050442945398d74023cf45

Dawn and Browser using their binding nugets

eemepetres committed 4 years ago

README

The README file for this repository.

Hello WebGPU.Net

This an example of how to use WebGPU on .Net (Windows and Browser), leveraging the WaveEngine WebGPU bindings.

https://webgpu.z28.web.core.windows.net/

Check https://webgpu.z28.web.core.windows.net/ for a live preview.

WebGPU on the browser is only currently supported on Chrome/Edge Canary versions, and Firefox Nightly.

  • Firefox: about:config -> dom.webgpu.enabled: true
  • Chrome/Edge: chrome://flags/#enable-unsafe-webgpu -> "Enabled"

Run it locally

Set-Up environment

Right now compilation must be finished on linux. Follow the dotnet-setup.sh script to install necessary dependencies (tested on Ubuntu 18 LTS).

Compile & Link

First, compile the project with MSBuild, then go to Linux if you are on windows (Ubuntu 18 LTS - WSL1) and run package.sh with the specific arguments of your project:

./package.sh [PATH_TO_PROJECT]/HelloWebGPUNet/HelloWebGPUNet.Web/bin/Release/netstandard2.0 $HOME/.build HelloWebGPUNet.Web.dll -a

-a option builds the project on AOT mode (the only one supported for now due to a bug in mono). Check the full list of arguments at package.sh

After compilation and linking are successfull, serve the folder bin/$(Configuration)/wasm with a static server.

libWebGPU.o

TODO