commit | 39695fd41de9b5c543186e75207665a49f998c19 | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Wed Nov 20 15:43:21 2019 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Wed Nov 20 15:43:21 2019 +0000 |
tree | 2c3cd408982ac4b0ee890329ab62e80e76f3fbdb | |
parent | 9e5b9edb43f2f2b94e88dbde517d8aff144f6278 [diff] |
Rolling 4 dependencies Roll third_party/SPIRV-Tools/ 12e54dae1..2ee9aaa28 (11 commits) https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools/+log/12e54dae167c..2ee9aaa288d9 $ git log 12e54dae1..2ee9aaa28 --date=short --no-merges --format='%ad %ae %s' 2019-11-19 rharrison Initialize binary for use as guard later (#3058) 2019-11-19 stevenperron Handle OpPhi with no in operands in value numbering (#3056) 2019-11-19 stevenperron Kill the id-to-func map after wrap-opkill (#3055) 2019-11-18 rharrison Convert stderr and stdout in status to strings on assignment (#3049) 2019-11-14 dneto Update README (#3047) 2019-11-14 pierremoreau Update README (#3048) 2019-11-13 dneto Avoid uninit warning in GCC (#3044) 2019-10-23 bclayton utils/vscode: Add SPIR-V language server support 2019-11-11 bclayton utils/vscode: Add go language server packages. 2019-11-12 alanbaker Fix operand access of composite in upgrade memory model (#3021) 2019-11-12 alanbaker Validate array stride does not cause overlap (#3028) Roll third_party/glslang/ 37dcb8945..f4d466852 (1 commit) https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang/+log/37dcb894574e..f4d4668529f1 $ git log 37dcb8945..f4d466852 --date=short --no-merges --format='%ad %ae %s' 2019-11-14 cepheus HLSL: Fix #1976: Don't let ENABLE_HLSL change struct/class layout. Roll third_party/shaderc/ 0865050e5..c7f5cfd07 (11 commits) https://chromium.googlesource.com/external/github.com/google/shaderc/+log/0865050e54e9..c7f5cfd07f41 $ git log 0865050e5..c7f5cfd07 --date=short --no-merges --format='%ad %ae %s' 2019-11-20 rharrison Rolling 4 dependencies (#897) 2019-11-19 rharrison Migrate away from nosetest to unittest (#896) 2019-11-18 9856269+sarahM0 Add spvc parser support for control flow instructions (#894) 2019-11-15 dneto Android.mk: Avoid polluting NDK build's test tree. (#888) 2019-11-15 rharrison Add access to MSL options needed by Dawn (#893) 2019-11-14 9856269+sarahM0 Add spvc parser support for all OpConstant.* and OpSpecConstant.* (#886) 2019-11-13 dneto Android.mk: Fix detection of spirv-headers directory (#887) 2019-11-13 9856269+sarahM0 Add spvc parser support and unit tests for: OpTypeMatrix, OpTypeRuntimeArray, OpTypeImage, OpTypeSampler, OpTypeSampledImage (#885) 2019-11-13 rharrison Remove the deprectated all-in-one generation API (#883) 2019-11-13 rharrison Expose spirv_cross compiler to ease integration into Dawn (#884) 2019-11-13 9856269+sarahM0 Add spvc parser support and unit tests for: OpTypeBool, OpTypeFloat, … (#881) Roll third_party/spirv-headers/ af64a9e82..204cd131c (2 commits) https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers/+log/af64a9e826bf..204cd131c42b $ git log af64a9e82..204cd131c --date=short --no-merges --format='%ad %ae %s' 2019-11-20 Tobias.Hector Off-by-one errors 2019-11-20 Tobias.Hector Reserve a new block of 64 opcodes Created with: roll-dep third_party/SPIRV-Tools third_party/glslang third_party/shaderc third_party/spirv-cross third_party/spirv-headers Change-Id: Id1417493410e35b951d1d4623576b11fa2baab2b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13840 Reviewed-by: Ryan Harrison <rharrison@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.