mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Replace Type::(Is|As)Struct with Castable
Change-Id: I0bc5645d65d7b53058bda7b343a991a9614741be Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34271 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -188,11 +188,11 @@ std::vector<ResourceBinding> Inspector::GetUniformBufferResourceBindings(
|
||||
}
|
||||
auto* unwrapped_type = var->type()->UnwrapIfNeeded();
|
||||
|
||||
if (!unwrapped_type->IsStruct()) {
|
||||
if (!unwrapped_type->Is<ast::type::StructType>()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!unwrapped_type->AsStruct()->IsBlockDecorated()) {
|
||||
if (!unwrapped_type->As<ast::type::StructType>()->IsBlockDecorated()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ std::vector<ResourceBinding> Inspector::GetStorageBufferResourceBindingsImpl(
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!var->type()->UnwrapIfNeeded()->IsStruct()) {
|
||||
if (!var->type()->UnwrapIfNeeded()->Is<ast::type::StructType>()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user