mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
tint/ast: Remove ast::DepthTexture and ast::DepthMultisampledTexture
Instead use ast::TypeName. Bug: tint:1810 Change-Id: Id9fe641d193967cb27cea97e9c25b75c5fe2f1a2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119122 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
63b777b552
commit
a5fec206c9
@@ -147,10 +147,10 @@ const ast::Type* Transform::CreateASTTypeFor(CloneContext& ctx, const type::Type
|
||||
return ctx.dst->create<ast::Atomic>(CreateASTTypeFor(ctx, a->Type()));
|
||||
}
|
||||
if (auto* t = ty->As<type::DepthTexture>()) {
|
||||
return ctx.dst->create<ast::DepthTexture>(t->dim());
|
||||
return ctx.dst->ty.depth_texture(t->dim());
|
||||
}
|
||||
if (auto* t = ty->As<type::DepthMultisampledTexture>()) {
|
||||
return ctx.dst->create<ast::DepthMultisampledTexture>(t->dim());
|
||||
return ctx.dst->ty.depth_multisampled_texture(t->dim());
|
||||
}
|
||||
if (ty->Is<type::ExternalTexture>()) {
|
||||
return ctx.dst->ty.external_texture();
|
||||
|
||||
Reference in New Issue
Block a user