type_determiner: use f32 as the subtype for u/norm storage texture.

Fixes: tint:367
Change-Id: I311f5b9524d6251c88ae774dc8dc80f6d52e457d
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/33922
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Corentin Wallez
2020-11-25 13:58:47 +00:00
committed by Commit Bot service account
parent 12ed862c7e
commit bed7a32b3b
4 changed files with 44 additions and 18 deletions

View File

@@ -96,7 +96,7 @@ TEST_F(StorageTextureTypeTest, U32Type) {
ast::Module mod;
ast::type::Type* s = mod.create<StorageTextureType>(
TextureDimension::k2dArray, AccessControl::kReadOnly,
ImageFormat::kRgba8Unorm);
ImageFormat::kRg32Uint);
TypeDeterminer td(&ctx, &mod);
ASSERT_TRUE(td.Determine()) << td.error();