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

Change-Id: Id997f118a8ce9f4f7c42bed306368d3f204b6607
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34279
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton
2020-11-30 23:30:58 +00:00
parent 1a23756294
commit b062bbdce8
16 changed files with 53 additions and 92 deletions

View File

@@ -386,7 +386,9 @@ std::vector<ResourceBinding> Inspector::GetSampledTextureResourceBindingsImpl(
->type()
->UnwrapIfNeeded();
} else {
base_type = texture_type->AsSampled()->type()->UnwrapIfNeeded();
base_type = texture_type->As<ast::type::SampledTextureType>()
->type()
->UnwrapIfNeeded();
}
if (base_type->Is<ast::type::ArrayType>()) {