Add support for WGSL writing to BUILD.gn

BUG=tint:49

Change-Id: I4473176d4177a719b7b2659f765b6b467ac43c84
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/19682
Reviewed-by: dan sinclair <dsinclair@google.com>
This commit is contained in:
Ryan Harrison
2020-04-15 20:54:10 +00:00
committed by dan sinclair
parent 0caab67e6e
commit 460345d993
4 changed files with 38 additions and 9 deletions

View File

@@ -356,7 +356,7 @@ int main(int argc, const char** argv) {
#if TINT_BUILD_WGSL_WRITER
if (options.format == Format::kWgsl) {
auto w = static_cast<tint::writer::wgsl::Generator*>(writer.get());
auto* w = static_cast<tint::writer::wgsl::Generator*>(writer.get());
std::cout << w->result() << std::endl;
}
#endif // TINT_BUILD_WGSL_WRITER