1 ///////////////////////////////////////////////////////////////////////////
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
6 // Content: D3DX11 Effects debugging functions
8 ///////////////////////////////////////////////////////////////////////////
19 void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...)
21 static UINT uDebugLevel = (UINT) -1;
27 va_start(ap, szFormat);
28 StringCchVPrintfA(strA, sizeof(strA), szFormat, ap);
32 StringCchPrintfA(strB, sizeof(strB), "Effects11: %s\r\n", strA);
36 OutputDebugStringA(strB);
39 // This is defined so warning LNK4211 is not generated (object file has no public symbols)
40 void cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...) {}
50 int WINAPI D3DXDebugAssert(LPCSTR szFile, int nLine, LPCSTR szCondition)
54 // Print message to debug console
55 StringCchPrintfA(str, sizeof(str), "Assertion failure! (%s %d): %s\r\n", szFile, nLine, szCondition);
57 OutputDebugStringA(str);