commit | 306a2f8381b23d25586dd1c7ec9fe4f562fbf7a0 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Thu Mar 12 12:43:05 2020 +0000 |
committer | dan sinclair <dsinclair@google.com> | Thu Mar 12 12:43:05 2020 +0000 |
tree | e87e600ad22391ed38d3d4cca2213d9312a279d2 | |
parent | d9e9ff3be52cd9c996b17f84f9649eef30203caf [diff] |
Add IdentifierExpression to WGSL writer. This CL extends the WGSL writer to output IdentiferExpression and fills out the variable with initializer test case and implementation. Bug: tint:4 Change-Id: I9db9affb5ec4c4c109488f60bbc81bf3a96eee35 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/16744 Reviewed-by: David Neto <dneto@google.com>
Tint is a compiler for the WebGPU Shader Language (WGSL).
This is not an officially supported Google product.
TINT_BUILD_SPV_PARSER
: enable the SPIR-V input parserTint uses Chromium dependency management so you need to install depot_tools and add it to your PATH.
# Clone the repo as "tint" git clone https://dawn.googlesource.com/tint tint && cd tint # Bootstrap the gclient configuration cp standalone.gclient .gclient # Fetch external dependencies and toolchains with gclient gclient sync
mkdir -p out/Debug cd out/Debug cmake -GNinja ../.. ninja # or autoninja
mkdir -p out/Debug cd out/Debug cmake ../.. make # -j N for N-way parallel build
Please file any issues or feature requests at https://bugs.chromium.org/p/tint/issues/entry
Please see the CONTRIBUTING and CODE_OF_CONDUCT files on how to contribute to Tint.