From d3e7f944ab87bf6323963269a6b04d9d460c3cb3 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 16 Jul 2019 15:05:09 +0000 Subject: [PATCH] Fix double to float conversion warning on MSVC BUG= Change-Id: Iccae33f4c925c554e73e40a70d490a26d54949bf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9001 Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez --- src/tests/end2end/TextureFormatTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/end2end/TextureFormatTests.cpp b/src/tests/end2end/TextureFormatTests.cpp index 5e7ba1c73c..634bd96c89 100644 --- a/src/tests/end2end/TextureFormatTests.cpp +++ b/src/tests/end2end/TextureFormatTests.cpp @@ -435,7 +435,7 @@ class TextureFormatTest : public DawnTest { ASSERT(formatInfo.type == Float); std::vector textureData = {+0.0f, -0.0f, 1.0f, 1.0e-29f, - 1.0e29, NAN, INFINITY, -INFINITY}; + 1.0e29f, NAN, INFINITY, -INFINITY}; DoFloatFormatSamplingTest(formatInfo, textureData, textureData); DoFormatRenderingTest(formatInfo, textureData, textureData); @@ -452,7 +452,7 @@ class TextureFormatTest : public DawnTest { textureData.push_back(Float32ToFloat16(value)); } - DoFloatFormatSamplingTest(formatInfo, textureData, uncompressedData, 1.0e-5); + DoFloatFormatSamplingTest(formatInfo, textureData, uncompressedData, 1.0e-5f); // Use a special expectation that knows that all Float16 NaNs are equivalent. DoFormatRenderingTest(formatInfo, uncompressedData, textureData,