commit | e70e10953b5dcb5ee70412f4da514d8fb480abbd | [log] [tgz] |
---|---|---|
author | David Neto <dneto@google.com> | Tue Apr 07 19:54:52 2020 +0000 |
committer | David Neto <dneto@google.com> | Tue Apr 07 19:54:52 2020 +0000 |
tree | 750d2ab46a59ce05eb34030674bb5eb4f08be2c3 | |
parent | cd543df18dd4d7bb7a7636890a59d3a01a8dc0c7 [diff] |
[spirv-reader] Refactor function emission Create a FunctionEmitter class. Move ParserImpl::Name to Namer::Name, and add tests. Bug: tint:3 Change-Id: I271e8c75f6f5a0edf9d94fe0a4af5a022afac708 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/18702 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_READER
: enable the SPIR-V input reader (off by default)TINT_BUILD_WGSL_READER
: enable the WGSL input reader (on by default)TINT_BUILD_SPV_WRITER
: enable the SPIR-V output writer (on by default)TINT_BUILD_WGSL_WRITER
: enable the WGSL output writer (on by default)Tint 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.