mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
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:
committed by
Commit Bot service account
parent
2da833d815
commit
eaa85796c7
@@ -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
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user