mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Replace Type::(Is|As)Matrix with Castable
Change-Id: I861aed231604a8bfba1f4cf3659b4863556fc3c4 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34268 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -387,8 +387,8 @@ std::vector<ResourceBinding> Inspector::GetSampledTextureResourceBindingsImpl(
|
||||
|
||||
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->Is<ast::type::MatrixType>()) {
|
||||
base_type = base_type->As<ast::type::MatrixType>()->type();
|
||||
} else if (base_type->IsVector()) {
|
||||
base_type = base_type->AsVector()->type();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user