blob: 4fb672fd5e299fa7dfabafbd7fbcc9ddfc096383 [file] [log] [blame] [view]
Ben Clayton26c31f62022-01-27 18:33:47 +00001![Dawn's logo: a sun rising behind a stylized mountain inspired by the WebGPU logo. The text "Dawn" is written below it.](docs/imgs/dawn_logo.png "Dawn's logo")
Corentin Wallez749e1442021-09-02 09:51:40 +00002
Corentin Wallez3b246682018-08-16 13:50:49 +02003# Dawn, a WebGPU implementation
Corentin Wallezf07e3bd2017-04-20 14:38:20 -04004
Corentin Wallez1d6250d2019-12-05 11:01:41 +00005Dawn is an open-source and cross-platform implementation of the work-in-progress [WebGPU](https://webgpu.dev) standard.
dan sinclairfb5a4922022-04-19 22:25:45 +00006More 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.
Corentin Wallez1d6250d2019-12-05 11:01:41 +00007Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Corentin Wallezf07e3bd2017-04-20 14:38:20 -04008
Corentin Wallez3b246682018-08-16 13:50:49 +02009Dawn provides several WebGPU building blocks:
10 - **WebGPU C/C++ headers** that applications and other building blocks use.
Corentin Wallez1d6250d2019-12-05 11:01:41 +000011 - The `webgpu.h` version that Dawn implements.
12 - A C++ wrapper for the `webgpu.h`.
Corentin Wallezd072e112022-08-09 14:09:00 +000013 - **A "native" implementation of WebGPU** using platforms' GPU APIs: D3D12, Metal, Vulkan and OpenGL. See [per API support](docs/support.md) for more details.
Corentin Wallez3b246682018-08-16 13:50:49 +020014 - **A client-server implementation of WebGPU** for applications that are in a sandbox without access to native drivers
Corentin Wallezd072e112022-08-09 14:09:00 +000015 - **Tint** is a compiler for the WebGPU Shader Language (WGSL) that can be used in standalone to convert shaders from and to WGSL.
Corentin Wallezf07e3bd2017-04-20 14:38:20 -040016
Corentin Wallez1d6250d2019-12-05 11:01:41 +000017Helpful links:
Corentin Wallezf07e3bd2017-04-20 14:38:20 -040018
dan sinclair5ee22f32022-04-28 16:25:43 +000019 - [Dawn bug tracker](https://bugs.chromium.org/p/dawn/issues/entry) if you find issues with Dawn.
20 - [Tint bug tracker](https://bugs.chromium.org/p/tint/issues/entry) if you find issues with Tint.
Corentin Wallez1d6250d2019-12-05 11:01:41 +000021 - [Dawn's mailing list](https://groups.google.com/forum/#!members/dawn-graphics) for other discussions related to Dawn.
22 - [Dawn's source code](https://dawn.googlesource.com/dawn)
Corentin Wallezd05e5322020-09-11 10:38:46 +000023 - [Dawn's Matrix chatroom](https://matrix.to/#/#webgpu-dawn:matrix.org) for live discussion around contributing or using Dawn.
Corentin Wallez094d1d42020-04-24 12:38:13 +000024 - [WebGPU's Matrix chatroom](https://matrix.to/#/#WebGPU:matrix.org)
dan sinclair5ee22f32022-04-28 16:25:43 +000025 - [Tint mirror](https://dawn.googlesource.com/tint) for standalone usage.
Corentin Wallezf07e3bd2017-04-20 14:38:20 -040026
Corentin Wallez1d6250d2019-12-05 11:01:41 +000027## Documentation table of content
Corentin Wallezf07e3bd2017-04-20 14:38:20 -040028
Corentin Wallez1d6250d2019-12-05 11:01:41 +000029Developer documentation:
Corentin Wallezf07e3bd2017-04-20 14:38:20 -040030
Ben Clayton26c31f62022-01-27 18:33:47 +000031 - [Dawn overview](docs/dawn/overview.md)
dan sinclair5ee22f32022-04-28 16:25:43 +000032 - [Building](docs/building.md)
33 - [Contributing](CONTRIBUTING.md)
34 - [Code of Conduct](CODE_OF_CONDUCT.md)
Ben Clayton26c31f62022-01-27 18:33:47 +000035 - [Testing Dawn](docs/dawn/testing.md)
36 - [Debugging Dawn](docs/dawn/debugging.md)
37 - [Dawn's infrastructure](docs/dawn/infra.md)
38 - [Dawn errors](docs/dawn/errors.md)
dan sinclair5ee22f32022-04-28 16:25:43 +000039 - [Tint experimental extensions](docs/tint/experimental_extensions.md)
40
David Netob5bced22018-11-13 09:10:37 +000041
Corentin Walleze3faaae2020-10-21 14:37:52 +000042User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
David Netob5bced22018-11-13 09:10:37 +000043
Corentin Wallez1d6250d2019-12-05 11:01:41 +000044## Status
Corentin Wallezf07e3bd2017-04-20 14:38:20 -040045
Corentin Wallez1d6250d2019-12-05 11:01:41 +000046(TODO)
Corentin Wallez51108e02018-10-08 13:51:18 +000047
Corentin Wallez3b246682018-08-16 13:50:49 +020048## License
49
Corentin Wallez1d6250d2019-12-05 11:01:41 +000050Apache 2.0 Public License, please see [LICENSE](/LICENSE).
Corentin Wallez3b246682018-08-16 13:50:49 +020051
52## Disclaimer
53
54This is not an officially supported Google product.