mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Replace Type::(Is|As)Array with Castable
Change-Id: I8d9b916f5977121380325d373c4e2f805b691fae Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34264 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -383,8 +383,8 @@ std::vector<ResourceBinding> Inspector::GetSampledTextureResourceBindingsImpl(
|
||||
base_type = texture_type->AsSampled()->type()->UnwrapIfNeeded();
|
||||
}
|
||||
|
||||
if (base_type->IsArray()) {
|
||||
base_type = base_type->AsArray()->type();
|
||||
if (base_type->Is<ast::type::ArrayType>()) {
|
||||
base_type = base_type->As<ast::type::ArrayType>()->type();
|
||||
} else if (base_type->IsMatrix()) {
|
||||
base_type = base_type->AsMatrix()->type();
|
||||
} else if (base_type->IsVector()) {
|
||||
|
||||
Reference in New Issue
Block a user