raSystem  1.0 bata
d3dxGlobal.h File Reference
#include "d3dx11dbg.h"

Go to the source code of this file.

Classes

class  D3DX11Core::CMemoryStream
 
class  CEffectVector< T >
 
class  CEffectVectorOwner< T >
 
class  CheckedNumber< T, MaxValue >
 
class  CDataBlock
 
class  CDataBlockStore
 
class  CEffectHashTable< T, pfnIsEqual >
 
struct  CEffectHashTable< T, pfnIsEqual >::SHashEntry
 
class  CEffectHashTable< T, pfnIsEqual >::CIterator
 
class  CEffectHashTableWithPrivateHeap< T, pfnIsEqual >
 

Namespaces

 D3DX11Debug
 
 D3DX11Core
 

Macros

#define SAFE_RELEASE(p)   { if (p) { (p)->Release(); (p) = NULL; } }
 
#define SAFE_ADDREF(p)   { if (p) { (p)->AddRef(); } }
 
#define SAFE_DELETE_ARRAY(p)   { delete [](p); p = NULL; }
 
#define SAFE_DELETE(p)   { delete (p); p = NULL; }
 
#define __BREAK_ON_FAIL
 
#define VA(x, action)   { hr = (x); if (FAILED(hr)) { action; __BREAK_ON_FAIL; return hr; } }
 
#define VNA(x, action)   { if (!(x)) { action; __BREAK_ON_FAIL; hr = E_OUTOFMEMORY; goto lExit; } }
 
#define VBA(x, action)   { if (!(x)) { action; __BREAK_ON_FAIL; hr = E_FAIL; goto lExit; } }
 
#define VHA(x, action)   { hr = (x); if (FAILED(hr)) { action; __BREAK_ON_FAIL; goto lExit; } }
 
#define V(x)   { VA (x, 0) }
 
#define VN(x)   { VNA(x, 0) }
 
#define VB(x)   { VBA(x, 0) }
 
#define VH(x)   { VHA(x, 0) }
 
#define VBD(x, str)   { VBA(x, DPF(1,str)) }
 
#define VHD(x, str)   { VHA(x, DPF(1,str)) }
 
#define VEASSERT(x)   { hr = (x); if (FAILED(hr)) { __BREAK_ON_FAIL; D3DXASSERT(!#x); goto lExit; } }
 
#define VNASSERT(x)   { if (!(x)) { __BREAK_ON_FAIL; D3DXASSERT(!#x); hr = E_OUTOFMEMORY; goto lExit; } }
 
#define ANALYSIS_ASSUME(x)   { D3DXASSERT(x); __analysis_assume(x); __assume(x); }
 
#define D3DX11FLTASSIGN(a, b)   { *reinterpret_cast< UINT32* >(&(a)) = *reinterpret_cast< UINT32* >(&(b)); }
 
#define HASH_MIX(a, b, c)
 

Typedefs

typedef CheckedNumber< UINT, _UI32_MAX > CCheckedDword
 
typedef CheckedNumber< DWORD64, _UI64_MAX > CCheckedDword64
 

Functions

D3DX11INLINE UINT AlignToPowerOf2 (UINT Value, UINT Alignment)
 
D3DX11INLINE voidAlignToPowerOf2 (void *pValue, UINT_PTR Alignment)
 
D3DX11INLINE void dwordMemcpy (__out_bcount(uByteCount) void *__restrict pDest, __in_bcount(uByteCount) CONST void *__restrict pSource, UINT uByteCount)
 

Macro Definition Documentation

◆ __BREAK_ON_FAIL

#define __BREAK_ON_FAIL

Definition at line 31 of file d3dxGlobal.h.

◆ ANALYSIS_ASSUME

#define ANALYSIS_ASSUME (   x)    { D3DXASSERT(x); __analysis_assume(x); __assume(x); }

Definition at line 50 of file d3dxGlobal.h.

◆ D3DX11FLTASSIGN

#define D3DX11FLTASSIGN (   a,
 
)    { *reinterpret_cast< UINT32* >(&(a)) = *reinterpret_cast< UINT32* >(&(b)); }

Definition at line 52 of file d3dxGlobal.h.

◆ HASH_MIX

#define HASH_MIX (   a,
  b,
 
)
Value:
{ \
a -= b; a -= c; a ^= (c>>13); \
b -= c; b -= a; b ^= (a<<8); \
c -= a; c -= b; c ^= (b>>13); \
a -= b; a -= c; a ^= (c>>12); \
b -= c; b -= a; b ^= (a<<16); \
c -= a; c -= b; c ^= (b>>5); \
a -= b; a -= c; a ^= (c>>3); \
b -= c; b -= a; b ^= (a<<10); \
c -= a; c -= b; c ^= (b>>15); \
}

Definition at line 682 of file d3dxGlobal.h.

◆ SAFE_ADDREF

#define SAFE_ADDREF (   p)    { if (p) { (p)->AddRef(); } }

Definition at line 23 of file d3dxGlobal.h.

◆ SAFE_DELETE

#define SAFE_DELETE (   p)    { delete (p); p = NULL; }

Definition at line 26 of file d3dxGlobal.h.

◆ SAFE_DELETE_ARRAY

#define SAFE_DELETE_ARRAY (   p)    { delete [](p); p = NULL; }

Definition at line 25 of file d3dxGlobal.h.

◆ SAFE_RELEASE

#define SAFE_RELEASE (   p)    { if (p) { (p)->Release(); (p) = NULL; } }

Definition at line 22 of file d3dxGlobal.h.

◆ V

#define V (   x)    { VA (x, 0) }

Definition at line 39 of file d3dxGlobal.h.

◆ VA

#define VA (   x,
  action 
)    { hr = (x); if (FAILED(hr)) { action; __BREAK_ON_FAIL; return hr; } }

Definition at line 34 of file d3dxGlobal.h.

◆ VB

#define VB (   x)    { VBA(x, 0) }

Definition at line 41 of file d3dxGlobal.h.

◆ VBA

#define VBA (   x,
  action 
)    { if (!(x)) { action; __BREAK_ON_FAIL; hr = E_FAIL; goto lExit; } }

Definition at line 36 of file d3dxGlobal.h.

◆ VBD

#define VBD (   x,
  str 
)    { VBA(x, DPF(1,str)) }

Definition at line 44 of file d3dxGlobal.h.

◆ VEASSERT

#define VEASSERT (   x)    { hr = (x); if (FAILED(hr)) { __BREAK_ON_FAIL; D3DXASSERT(!#x); goto lExit; } }

Definition at line 47 of file d3dxGlobal.h.

◆ VH

#define VH (   x)    { VHA(x, 0) }

Definition at line 42 of file d3dxGlobal.h.

◆ VHA

#define VHA (   x,
  action 
)    { hr = (x); if (FAILED(hr)) { action; __BREAK_ON_FAIL; goto lExit; } }

Definition at line 37 of file d3dxGlobal.h.

◆ VHD

#define VHD (   x,
  str 
)    { VHA(x, DPF(1,str)) }

Definition at line 45 of file d3dxGlobal.h.

◆ VN

#define VN (   x)    { VNA(x, 0) }

Definition at line 40 of file d3dxGlobal.h.

◆ VNA

#define VNA (   x,
  action 
)    { if (!(x)) { action; __BREAK_ON_FAIL; hr = E_OUTOFMEMORY; goto lExit; } }

Definition at line 35 of file d3dxGlobal.h.

◆ VNASSERT

#define VNASSERT (   x)    { if (!(x)) { __BREAK_ON_FAIL; D3DXASSERT(!#x); hr = E_OUTOFMEMORY; goto lExit; } }

Definition at line 48 of file d3dxGlobal.h.

Typedef Documentation

◆ CCheckedDword

typedef CheckedNumber<UINT, _UI32_MAX> CCheckedDword

Definition at line 603 of file d3dxGlobal.h.

◆ CCheckedDword64

typedef CheckedNumber<DWORD64, _UI64_MAX> CCheckedDword64

Definition at line 604 of file d3dxGlobal.h.

Function Documentation

◆ AlignToPowerOf2() [1/2]

D3DX11INLINE UINT AlignToPowerOf2 ( UINT  Value,
UINT  Alignment 
)

Definition at line 57 of file d3dxGlobal.h.

◆ AlignToPowerOf2() [2/2]

D3DX11INLINE void* AlignToPowerOf2 ( void pValue,
UINT_PTR  Alignment 
)

Definition at line 65 of file d3dxGlobal.h.

◆ dwordMemcpy()

D3DX11INLINE void dwordMemcpy ( __out_bcount(uByteCount) void *__restrict  pDest,
__in_bcount(uByteCount) CONST void *__restrict  pSource,
UINT  uByteCount 
)

Definition at line 74 of file d3dxGlobal.h.