ast: Fix vector constructors in ValidCases()

A couple of the vector constructors were the wrong width.
Noticed when looking at the far-more-readable HLSL writer output.

Change-Id: Ibb383eafb55c5f743851aa4500adeda5909f0922
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/33423
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton
2020-11-20 10:25:54 +00:00
committed by Commit Bot service account
parent 2da833d815
commit eaa85796c7
2 changed files with 11 additions and 10 deletions

View File

@@ -320,7 +320,7 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
using f32 = ast::Builder::f32;
return b->ExprList("texture", // t
"sampler", // s
b->vec2<f32>(1.f, 2.f, 3.f)); // coords
b->vec3<f32>(1.f, 2.f, 3.f)); // coords
},
},
{
@@ -338,7 +338,7 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
using f32 = ast::Builder::f32;
return b->ExprList("texture", // t
"sampler", // s
b->vec2<f32>(1.f, 2.f, 3.f), // coords
b->vec3<f32>(1.f, 2.f, 3.f), // coords
4u); // array_index
},
},