mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Replace TextureType::(Is|As)Multisampled with Castable
Change-Id: I9a0e2ba4c6b0950134cef4b291cd1ba5cae1198c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34277 Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
@@ -382,7 +382,9 @@ std::vector<ResourceBinding> Inspector::GetSampledTextureResourceBindingsImpl(
|
||||
|
||||
ast::type::Type* base_type = nullptr;
|
||||
if (multisampled_only) {
|
||||
base_type = texture_type->AsMultisampled()->type()->UnwrapIfNeeded();
|
||||
base_type = texture_type->As<ast::type::MultisampledTextureType>()
|
||||
->type()
|
||||
->UnwrapIfNeeded();
|
||||
} else {
|
||||
base_type = texture_type->AsSampled()->type()->UnwrapIfNeeded();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user