summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12/d3d12-device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d12/d3d12-device.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-device.cpp b/tools/gfx/d3d12/d3d12-device.cpp
index ad71388c4..f00b4d8e0 100644
--- a/tools/gfx/d3d12/d3d12-device.cpp
+++ b/tools/gfx/d3d12/d3d12-device.cpp
@@ -463,6 +463,7 @@ Result DeviceImpl::initialize(const Desc& desc)
return SLANG_FAIL;
}
+#if SLANG_ENABLE_PIX
HMODULE pixModule = LoadLibraryW(L"WinPixEventRuntime.dll");
if (pixModule)
{
@@ -471,6 +472,7 @@ Result DeviceImpl::initialize(const Desc& desc)
m_EndEventOnCommandList =
(PFN_EndEventOnCommandList)GetProcAddress(pixModule, "PIXEndEventOnCommandList");
}
+#endif
if (ENABLE_DEBUG_LAYER || isGfxDebugLayerEnabled())
{