mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
ProgramBuilder: Migrate arrays to typ::TypePair
Used as a stepping stone to emitting the ast::Types instead. Bug: tint:724 Change-Id: Idadb7d8b5d6fce1d898127675442221de07a633d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48685 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
fdb91fd85e
commit
7241a504f0
@@ -220,7 +220,7 @@ void Spirv::HandleSampleMaskBuiltins(CloneContext& ctx) const {
|
||||
// Use the same name as the old variable.
|
||||
auto var_name = ctx.Clone(var->symbol());
|
||||
// Use `array<u32, 1>` for the new variable.
|
||||
auto* type = ctx.dst->ty.array(ctx.dst->ty.u32(), 1u);
|
||||
auto type = ctx.dst->ty.array(ctx.dst->ty.u32(), 1u);
|
||||
// Create the new variable.
|
||||
auto* var_arr = ctx.dst->Var(var->source(), var_name, type,
|
||||
var->declared_storage_class(), nullptr,
|
||||
|
||||
Reference in New Issue
Block a user