raSystem
1.0 bata
d3dx11dbg.h
Go to the documentation of this file.
1
//
3
// Copyright (C) Microsoft Corporation. All Rights Reserved.
4
//
5
// File: d3dx11dbg.h
6
// Content: D3DX11 debugging functions
7
//
9
10
11
#ifndef __D3DX11DBG_H__
12
#define __D3DX11DBG_H__
13
14
#ifndef _PREFAST_
15
16
#pragma warning( disable: 4068 )
17
18
#endif
19
20
21
#include <strsafe.h>
22
#include <new>
23
24
#undef NEW
25
#undef DELETE
26
27
#define NEW new (std::nothrow)
28
#define NEW_PROTO_ARGS size_t s, const std::nothrow_t& t
29
30
31
32
typedef
signed
char
INT8
;
33
typedef
signed
short
INT16
;
34
typedef
unsigned
char
UINT8
;
35
typedef
unsigned
short
UINT16
;
36
37
38
//----------------------------------------------------------------------------
39
// DPF
40
//----------------------------------------------------------------------------
41
42
#ifdef FXDPF
43
void
cdecl D3DXDebugPrintf(UINT lvl, LPCSTR szFormat, ...);
44
#define DPF D3DXDebugPrintf
45
#else // !FXDPF
46
#pragma warning(disable:4002)
47
#define DPF() 0
48
#endif // !FXDPF
49
50
51
//----------------------------------------------------------------------------
52
// D3DXASSERT
53
//----------------------------------------------------------------------------
54
55
#if _DEBUG
56
int
WINAPI D3DXDebugAssert(LPCSTR szFile,
int
nLine, LPCSTR szCondition);
57
#define D3DXASSERT(condition) \
58
do { if(!(condition)) D3DXDebugAssert(__FILE__, __LINE__, #condition); } while(0)
59
#else // !_DEBUG
60
#define D3DXASSERT(condition) 0
61
#endif // !_DEBUG
62
63
64
65
#endif // __D3DX11DBG_H__
66
UINT16
unsigned short UINT16
Definition:
d3dx11dbg.h:35
INT16
signed short INT16
Definition:
d3dx11dbg.h:33
UINT8
unsigned char UINT8
Definition:
d3dx11dbg.h:34
INT8
signed char INT8
Definition:
d3dx11dbg.h:32
3rd-path
D3Dx11EffectFramework
d3dx11dbg.h
Generated by
1.8.13