/webgpu-starter

Base code for starting a WebGPU project using Dawn (C++). Native and WebAssembly builds

Primary LanguageC++

WebGPU starter

Base code for starting a WebGPU project using Dawn (C++).

Dependencies:

Build

Native:

mkdir -p dist/native && cd dist/native
cmake -DCMAKE_BUILD_TYPE=Release ../..
make -j 10

Web:

mkdir -p dist/web && cd dist/web
emcmake cmake -DCMAKE_BUILD_TYPE=Release ../..
make -j 10

Update dependencies

Prerequisites:

# Update all submodules to the latest commit on the upstream. 
git submodule update --remote --merge

# Pull Dawn external packages.
cd lib/dawn && gclient sync