[spirv-reader] Add TODO for ArrayStride

Bug: tint:3
Change-Id: I9655ddbe48f2660f88be68bc52c9467d805043ab
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/18080
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
David Neto 2020-03-27 21:11:05 +00:00
parent 48442a6cee
commit a8bcec3ac1
1 changed files with 2 additions and 0 deletions

View File

@ -183,6 +183,7 @@ ast::type::Type* ParserImpl::ConvertType(uint32_t type_id) {
break;
}
case spvtools::opt::analysis::Type::kRuntimeArray: {
// TODO(dneto): Handle ArrayStride. Blocked by crbug.com/tint/30
const auto* rtarr_ty = spirv_type->AsRuntimeArray();
auto* ast_elem_ty =
ConvertType(type_mgr_->GetId(rtarr_ty->element_type()));
@ -194,6 +195,7 @@ ast::type::Type* ParserImpl::ConvertType(uint32_t type_id) {
break;
}
case spvtools::opt::analysis::Type::kArray: {
// TODO(dneto): Handle ArrayStride. Blocked by crbug.com/tint/30
const auto* arr_ty = spirv_type->AsArray();
auto* ast_elem_ty = ConvertType(type_mgr_->GetId(arr_ty->element_type()));
if (ast_elem_ty == nullptr) {