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:
parent
c8ab96cdd9
commit
d3e7f944ab
|
@ -435,7 +435,7 @@ class TextureFormatTest : public DawnTest {
|
|||
ASSERT(formatInfo.type == Float);
|
||||
|
||||
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);
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue