mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Replace Type::(Is|As)AccessControl with Castable
Change-Id: I833c92be270236fefd1e77a7a145dede757e93e9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34262 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -181,7 +181,7 @@ std::vector<ResourceBinding> Inspector::GetUniformBufferResourceBindings(
|
||||
ast::Variable* var = nullptr;
|
||||
ast::Function::BindingInfo binding_info;
|
||||
std::tie(var, binding_info) = ruv;
|
||||
if (!var->type()->IsAccessControl()) {
|
||||
if (!var->type()->Is<ast::type::AccessControlType>()) {
|
||||
continue;
|
||||
}
|
||||
auto* unwrapped_type = var->type()->UnwrapIfNeeded();
|
||||
@@ -303,11 +303,11 @@ std::vector<ResourceBinding> Inspector::GetStorageBufferResourceBindingsImpl(
|
||||
ast::Variable* var = nullptr;
|
||||
ast::Function::BindingInfo binding_info;
|
||||
std::tie(var, binding_info) = rsv;
|
||||
if (!var->type()->IsAccessControl()) {
|
||||
if (!var->type()->Is<ast::type::AccessControlType>()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto* ac_type = var->type()->AsAccessControl();
|
||||
auto* ac_type = var->type()->As<ast::type::AccessControlType>();
|
||||
if (read_only != ac_type->IsReadOnly()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user