summaryrefslogtreecommitdiff
path: root/sample/d3d11/Effects11/d3dx11dbg.cpp
diff options
context:
space:
mode:
authorJason Maskell <[email protected]>2016-05-12 10:58:15 +0200
committerJason Maskell <[email protected]>2016-05-12 10:58:15 +0200
commit72b21c69e32c73abf3a18b0e962746e64faebba4 (patch)
treecd22b1b298bc865c3ae6037e8eb89a64a94203ea /sample/d3d11/Effects11/d3dx11dbg.cpp
parentMerge branch 'master' of https://github.com/NVIDIAGameWorks/WaveWorks (diff)
downloadwaveworks_archive-72b21c69e32c73abf3a18b0e962746e64faebba4.tar.xz
waveworks_archive-72b21c69e32c73abf3a18b0e962746e64faebba4.zip
Restructuring starts. Got some initial CMake problems sorted. Need to extend.
Diffstat (limited to 'sample/d3d11/Effects11/d3dx11dbg.cpp')
-rw-r--r--sample/d3d11/Effects11/d3dx11dbg.cpp62
1 files changed, 0 insertions, 62 deletions
diff --git a/sample/d3d11/Effects11/d3dx11dbg.cpp b/sample/d3d11/Effects11/d3dx11dbg.cpp
deleted file mode 100644
index 330e8d9..0000000
--- a/sample/d3d11/Effects11/d3dx11dbg.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-///////////////////////////////////////////////////////////////////////////
-//
-// Copyright (C) Microsoft Corporation. All Rights Reserved.
-//
-// File: d3dx11dbg.cpp
-// Content: D3DX11 Effects debugging functions
-//
-///////////////////////////////////////////////////////////////////////////
-
-#include "pchfx.h"
-
-
-#ifdef FXDPF
-
-//
-// DPF
-//
-
-void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...)
-{
- static UINT uDebugLevel = (UINT) -1;
-
- char strA[4096];
- char strB[4096];
-
- va_list ap;
- va_start(ap, szFormat);
- StringCchVPrintfA(strA, sizeof(strA), szFormat, ap);
- strA[4095] = '\0';
- va_end(ap);
-
- StringCchPrintfA(strB, sizeof(strB), "Effects11: %s\r\n", strA);
-
- strB[4095] = '\0';
-
- OutputDebugStringA(strB);
-}
-#else
-// This is defined so warning LNK4211 is not generated (object file has no public symbols)
-void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...) {}
-#endif
-
-
-//
-// D3DXASSERT
-//
-
-#ifdef _DEBUG
-
-int WINAPI D3DXDebugAssert(LPCSTR szFile, int nLine, LPCSTR szCondition)
-{
- char str[512];
-
- // Print message to debug console
- StringCchPrintfA(str, sizeof(str), "Assertion failure! (%s %d): %s\r\n", szFile, nLine, szCondition);
- str[511] = 0;
- OutputDebugStringA(str);
-
- return 0;
-}
-#endif
-