summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx-unit-test/gfx-test-texture-util.cpp7
-rw-r--r--tools/gfx-unit-test/ray-tracing-tests.cpp2
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/gfx-unit-test/gfx-test-texture-util.cpp b/tools/gfx-unit-test/gfx-test-texture-util.cpp
index bf9a54dc0..ff1ef39d0 100644
--- a/tools/gfx-unit-test/gfx-test-texture-util.cpp
+++ b/tools/gfx-unit-test/gfx-test-texture-util.cpp
@@ -7,8 +7,15 @@
#include <stdlib.h>
#include <stdio.h>
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable: 4996)
+#endif
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "external/stb/stb_image_write.h"
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
#define GFX_ENABLE_RENDERDOC_INTEGRATION 0
diff --git a/tools/gfx-unit-test/ray-tracing-tests.cpp b/tools/gfx-unit-test/ray-tracing-tests.cpp
index ee593dc2d..3bbcc6547 100644
--- a/tools/gfx-unit-test/ray-tracing-tests.cpp
+++ b/tools/gfx-unit-test/ray-tracing-tests.cpp
@@ -385,7 +385,7 @@ namespace gfx_test
GFX_CHECK_CALL_ABORT(device->readTextureResource(
resultTexture, ResourceState::CopySource, resultBlob.writeRef(), &rowPitch, &pixelSize));
- writeImage("C:/Users/lucchen/Documents/test.hdr", resultBlob, width, height, rowPitch, pixelSize);
+ writeImage("test.hdr", resultBlob, width, height, (uint32_t)rowPitch, (uint32_t)pixelSize);
auto buffer = removePadding(resultBlob, width, height, rowPitch, pixelSize);
auto actualData = (float*)buffer.getBuffer();