Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 698 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 698 Bytes

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