Fix VertexStateTests

BUG=dawn:714

Change-Id: Ic9c478ae708d48cf78228edf831badb7c401d131
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44924
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Ryan Harrison 2021-03-16 20:56:00 +00:00 committed by Commit Bot service account
parent 322e451a62
commit ed16517e32
1 changed files with 2 additions and 2 deletions

View File

@ -106,9 +106,9 @@ class VertexStateTest : public DawnTest {
vs << (component == 3 ? "1.0" : "0.0");
} else {
if (input.step == InputStepMode::Vertex) {
vs << "f32(" << multiplier << " * VertexIndex) + " << component << ".0";
vs << "f32(" << multiplier << "u * VertexIndex) + " << component << ".0";
} else {
vs << "f32(" << multiplier << " * InstanceIndex) + " << component << ".0";
vs << "f32(" << multiplier << "u * InstanceIndex) + " << component << ".0";
}
}
vs << ");\n";