Fix compilation on MSVC

BUG=

Change-Id: Ic813917322fdec5ccd97ebedd13435ba243d1de4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8622
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2019-07-07 17:53:13 +00:00 committed by Commit Bot service account
parent d2631f86e7
commit 769edd065b
1 changed files with 3 additions and 3 deletions

View File

@ -367,7 +367,7 @@ class TextureFormatTest : public DawnTest {
ASSERT(sizeof(float) * formatInfo.componentCount == formatInfo.texelByteSize);
ASSERT(formatInfo.type == Float);
std::vector<float> textureData = {+0.0f, -0.0f, 1.0f, 1.0e-29,
std::vector<float> textureData = {+0.0f, -0.0f, 1.0f, 1.0e-29f,
1.0e29, NAN, INFINITY, -INFINITY};
DoSampleTest(formatInfo, textureData, textureData);
@ -377,8 +377,8 @@ class TextureFormatTest : public DawnTest {
ASSERT(sizeof(int16_t) * formatInfo.componentCount == formatInfo.texelByteSize);
ASSERT(formatInfo.type == Float);
std::vector<float> expectedData = {+0.0f, -0.0f, 1.0f, 1.0e-4,
1.0e4, NAN, INFINITY, -INFINITY};
std::vector<float> expectedData = {+0.0f, -0.0f, 1.0f, 1.0e-4f,
1.0e4f, NAN, INFINITY, -INFINITY};
std::vector<uint16_t> textureData;
for (float value : expectedData) {
textureData.push_back(Float32ToFloat16(value));