commit | 3ac99398b57fbff4e7acd8c6e749e8493915e459 | [log] [tgz] |
---|---|---|
author | David Neto <dneto@google.com> | Tue Mar 17 16:14:10 2020 +0000 |
committer | dan sinclair <dsinclair@google.com> | Tue Mar 17 16:14:10 2020 +0000 |
tree | 74167da55db37d1cd7f677a78e2a2b0ae139f9cc | |
parent | c83578038a6909fd4ca6032b5eb9a992e7c2fcd7 [diff] |
spv: Parse OpExtInst for GLSL.std.450 It will always use the "std::glsl" import name. Remember all the IDs of such imports. Never add more than one GLSL.std.450 import to the AST. Also refactor the Assemble test helper into its own file. Bug: tint:3 Change-Id: I5b2b70ea0f00d44aacf553aa009756dff2a4cecf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/16662 Reviewed-by: dan sinclair <dsinclair@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.