summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12/d3d12-device.cpp
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-06-07 11:20:17 -0700
committerGitHub <noreply@github.com>2022-06-07 11:20:17 -0700
commit8c4a15c522861d2f30eacc9cd2b03ad793018639 (patch)
tree68dc2e57a88e13d77172c791c53237c93e1c87d0 /tools/gfx/d3d12/d3d12-device.cpp
parentc4ed2385e98385b2459b93a151df9e6e7d7d3591 (diff)
Add simple ray tracing test (#2261)
* checkpoint commit * Simple ray tracing test works * Removed unnecessary shaders and code but image is completely black * Simple ray tracing test for a 2x2 texture working; Added new helper functions to gfx-test-texture-util for stripping padding from texture resource readback and dumping textures to disk * Renamed variables * Ignore test if ray tracing isn't supported
Diffstat (limited to 'tools/gfx/d3d12/d3d12-device.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-device.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-device.cpp b/tools/gfx/d3d12/d3d12-device.cpp
index 07ab818b4..3578729d9 100644
--- a/tools/gfx/d3d12/d3d12-device.cpp
+++ b/tools/gfx/d3d12/d3d12-device.cpp
@@ -18,6 +18,12 @@
#include "d3d12-helper-functions.h"
+#ifdef _DEBUG
+# define ENABLE_DEBUG_LAYER 1
+#else
+# define ENABLE_DEBUG_LAYER 0
+#endif
+
namespace gfx
{
namespace d3d12