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 <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2019-07-16 15:05:09 +00:00 committed by Commit Bot service account
parent c8ab96cdd9
commit d3e7f944ab
1 changed files with 2 additions and 2 deletions

View File

@ -435,7 +435,7 @@ class TextureFormatTest : public DawnTest {
ASSERT(formatInfo.type == Float); ASSERT(formatInfo.type == Float);
std::vector<float> textureData = {+0.0f, -0.0f, 1.0f, 1.0e-29f, std::vector<float> textureData = {+0.0f, -0.0f, 1.0f, 1.0e-29f,
1.0e29, NAN, INFINITY, -INFINITY}; 1.0e29f, NAN, INFINITY, -INFINITY};
DoFloatFormatSamplingTest(formatInfo, textureData, textureData); DoFloatFormatSamplingTest(formatInfo, textureData, textureData);
DoFormatRenderingTest(formatInfo, textureData, textureData); DoFormatRenderingTest(formatInfo, textureData, textureData);
@ -452,7 +452,7 @@ class TextureFormatTest : public DawnTest {
textureData.push_back(Float32ToFloat16(value)); 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. // Use a special expectation that knows that all Float16 NaNs are equivalent.
DoFormatRenderingTest(formatInfo, uncompressedData, textureData, DoFormatRenderingTest(formatInfo, uncompressedData, textureData,