mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
tint/ast: Remove ast::Sampler
Instead use ast::TypeName. Bug: tint:1810 Change-Id: Ia2641d661cab70d110c975d5f0d0e76628816cb0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/119120 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@chromium.org> Kokoro: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
c9aa57d039
commit
ed3389faee
@@ -167,7 +167,7 @@ const ast::Type* Transform::CreateASTTypeFor(CloneContext& ctx, const type::Type
|
||||
CreateASTTypeFor(ctx, t->type()), t->access());
|
||||
}
|
||||
if (auto* s = ty->As<type::Sampler>()) {
|
||||
return ctx.dst->create<ast::Sampler>(s->kind());
|
||||
return ctx.dst->ty.sampler(s->kind());
|
||||
}
|
||||
TINT_UNREACHABLE(Transform, ctx.dst->Diagnostics())
|
||||
<< "Unhandled type: " << ty->TypeInfo().name;
|
||||
|
||||
Reference in New Issue
Block a user