Replace TextureType::(Is|As)Multisampled with Castable

Change-Id: I9a0e2ba4c6b0950134cef4b291cd1ba5cae1198c
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34277
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton
2020-11-30 23:30:58 +00:00
parent 09b8829d8e
commit 0441bd1756
12 changed files with 26 additions and 48 deletions

View File

@@ -382,7 +382,9 @@ std::vector<ResourceBinding> Inspector::GetSampledTextureResourceBindingsImpl(
ast::type::Type* base_type = nullptr;
if (multisampled_only) {
base_type = texture_type->AsMultisampled()->type()->UnwrapIfNeeded();
base_type = texture_type->As<ast::type::MultisampledTextureType>()
->type()
->UnwrapIfNeeded();
} else {
base_type = texture_type->AsSampled()->type()->UnwrapIfNeeded();
}