commit | e5dc367a7e534187a81ffe2124ebf2e07277d568 | [log] [tgz] |
---|---|---|
author | David Neto <dneto@google.com> | Fri Mar 13 20:18:06 2020 +0000 |
committer | David Neto <dneto@google.com> | Fri Mar 13 20:18:06 2020 +0000 |
tree | 3673311dd75488d45e029e6fa78d6e876a06082d | |
parent | 1ae7c7dba9b12e3f20481ff451ec717583cc70db [diff] |
spv: reject invalid SPIR-V Use the SPIRV-Tools validator, with the WebGPU0 environment. Bug: tint:3 Change-Id: Id1132d209fd939ed68587034761e97da9b35b21d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/16821 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.