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