commit | ae2b9f4720a7286e001d63939b9deaf2731ccc9f | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Tue Aug 20 21:04:31 2019 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Aug 20 21:04:31 2019 +0000 |
tree | c8e7d5a8aba0fe3fdaed64df7473b69b7128b797 | |
parent | 87ded961eea951ac1b59910e04a1b120ad8ef428 [diff] |
Rolling 3 dependencies Roll third_party/SPIRV-Tools/ f701237f2..0cbdc7a2c (9 commits) https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools/+log/f701237f2d88..0cbdc7a2c35b $ git log f701237f2..0cbdc7a2c --date=short --no-merges --format='%ad %ae %s' 2019-08-20 dneto Remove unimplemented method declaration (#2804) 2019-08-18 stevenperron Handle overflow in wrap-opkill (#2801) 2019-08-16 stevenperron More handle overflow in sroa (#2800) 2019-08-16 greg Instrument: Add support for Buffer Device Address extension (#2792) 2019-08-15 toomas.remmelg Update remquo validation to match the OpenCL Extended Instruction Set Specification (#2791) 2019-08-15 jaebaek Use ascii code based characters (#2796) 2019-08-14 jaebaek Change the way to include header (#2795) 2019-08-14 alanbaker Fix validation of constant matrices (#2794) 2019-08-14 stevenperron Replace OpKill With function call. (#2790) Roll third_party/glslang/ 37fc4d27d..95609e6d9 (1 commit) https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang/+log/37fc4d27d612..95609e6d923a $ git log 37fc4d27d..95609e6d9 --date=short --no-merges --format='%ad %ae %s' 2019-08-14 johnkslang Set theme jekyll-theme-merlot Roll third_party/shaderc/ b3b228c60..210fac890 (2 commits) https://chromium.googlesource.com/external/github.com/google/shaderc/+log/b3b228c60d63..210fac8904dc $ git log b3b228c60..210fac890 --date=short --no-merges --format='%ad %ae %s' 2019-08-20 zoddicus Rolling 4 dependencies (#779) 2019-08-13 zoddicus Rolling 3 dependencies (#777) Created with: roll-dep third_party/SPIRV-Tools third_party/glslang third_party/shaderc third_party/spirv-cross third_party/spirv-headers Change-Id: Ic0be3537340be4180d10a4fd02e921e138f44205 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10300 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Dawn (formerly NXT) is an open-source and cross-platform implementation of the work-in-progress WebGPU standard. It exposes a C/C++ API that maps almost one-to-one to the WebGPU IDL and can be managed as part of a larger system such as a Web browser.
Dawn provides several WebGPU building blocks:
dawn.json
: description of the API used to drive code generators.examples
: examples showing how Dawn is used.generator
: code generator for files produces from dawn.json
templates
: Jinja2 templates for the generatorscripts
: scripts to support things like continuous testing, build files, etc.src
:common
: helper code shared between core Dawn libraries and tests/samplesdawn_native
: native implementation of WebGPU, one subfolder per backenddawn_wire
: client-server implementation of WebGPUinclude
: public headers for Dawntests
: internal Dawn testsend2end
: WebGPU tests performing GPU operationsunittests
: unittests and by extension tests not using the GPUvalidation
: WebGPU validation tests not using the GPU (frontend tests)utils
: helper code to use Dawn used by tests and samplesthird_party
: directory where dependencies live as well as their buildfiles.Dawn uses the Chromium build system and dependency management so you need to install depot_tools and add it to the PATH.
On Linux you need to have the pkg-config
command:
# Install pkg-config on Ubuntu sudo apt-get install pkg-config
Then get the source as follows:
# Clone the repo as "dawn" git clone https://dawn.googlesource.com/dawn dawn && cd dawn # Bootstrap the gclient configuration cp scripts/standalone.gclient .gclient # Fetch external dependencies and toolchains with gclient gclient sync
Then generate build files using gn args out/Debug
or gn args out/Release
. A text editor will appear asking build options, the most common option is is_debug=true/false
; otherwise gn args out/Release --list
shows all the possible options.
Then use ninja -C out/Release
to build dawn and for example ./out/Release/dawn_end2end_tests
to run the tests.
Please read and follow CONTRIBUTING.md. Dawn doesn‘t have a formal coding style yet, except what’s defined by our clang format style. Overall try to use the same style and convention as code around your change.
If you find issues with Dawn, please feel free to report them on the bug tracker. For other discussions, please post to Dawn's mailing list.
Please see LICENSE.
This is not an officially supported Google product.