From 8c4a15c522861d2f30eacc9cd2b03ad793018639 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Tue, 7 Jun 2022 11:20:17 -0700 Subject: 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 --- tools/gfx/d3d12/d3d12-device.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/gfx') 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 -- cgit v1.2.3