Add missing @interpolate(flat) to validation test.

(Note that I've added the decoration to all types, integer or not.
This should make no difference for the purpose of this test.)

Bug: dawn:1271
Change-Id: I77a4c3ac25ad360ea59352499d97148c068ceda1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/78204
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White 2022-01-25 17:17:52 +00:00 committed by Dawn LUCI CQ
parent a9ca8cb4ab
commit 0999cb0371
1 changed files with 2 additions and 1 deletions

View File

@ -1334,7 +1334,8 @@ TEST_F(InterStageVariableMatchingValidationTest, DifferentTypeAtSameLocation) {
std::string interfaceDeclaration;
{
std::ostringstream sstream;
sstream << "struct A { @location(0) a: " << kTypes[i] << ";" << std::endl;
sstream << "struct A { @location(0) @interpolate(flat) a: " << kTypes[i] << ";"
<< std::endl;
interfaceDeclaration = sstream.str();
}
{