blob: f5c2e3c5363877b87da7d6c9a6f3b285955deed7 [file] [view] [edit]
<div align="center">
<img
title="Dawn's logo"
alt="Dawn's logo: a sun rising behind a stylized mountain inspired by the WebGPU logo."
src="docs/imgs/dawn_logo_notext.png"
width="50%">
[![Matrix Space](https://img.shields.io/static/v1?label=Space&message=%23webgpu-dawn&color=blue&logo=matrix)](https://matrix.to/#/#webgpu-dawn:matrix.org)
</div>
# Dawn Samples
### WORK IN PROGRESS
Samples for the Dawn library
Dawn is an open-source and cross-platform implementation of the [WebGPU](https://webgpu.dev) standard.
More precisely it implements [`webgpu.h`](https://github.com/webgpu-native/webgpu-headers/blob/main/webgpu.h) that is a one-to-one mapping with the WebGPU IDL.
### Building
Samples
- Clone the repository locally.
- Fetch the dependencies using `python tools/fetch_dawn_dependencies.py`
- Compile using Cmake+make
```sh
mkdir -p out/Debug
cd out/Debug
cmake ../..
make # -j N for N-way parallel build
```
Android Samples
- Clone the repository.
- Fetch the dependencies using `python tools/fetch_dawn_dependencies.py`
- Open src/samples/android in Android Studio Flamingo 2022 or greater.
- Build and run any of the samples on a physical Android device.
## License
BSD 3-Clause License, please see [LICENSE](/LICENSE).
## Disclaimer
This is not an officially supported Google product.