Add support for SPIRV reading to BUILD.gn

BUG=dawn:16

Change-Id: I1da30fed82a310007674801e3b1e853b25d5b573
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/19640
Reviewed-by: dan sinclair <dsinclair@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
Ryan Harrison
2020-04-15 20:35:38 +00:00
parent ac3213b4ad
commit d1cf8a8ba5
4 changed files with 111 additions and 7 deletions

View File

@@ -806,7 +806,7 @@ std::unique_ptr<ast::Expression> ParserImpl::MakeConstantExpression(
return std::make_unique<ast::ScalarConstructorExpression>(
std::make_unique<ast::BoolLiteral>(ast_type, value));
}
auto spirv_composite_const = spirv_const->AsCompositeConstant();
auto* spirv_composite_const = spirv_const->AsCompositeConstant();
if (spirv_composite_const != nullptr) {
// Handle vector, matrix, array, and struct