DumpD3DCaps9.cpp revision b42fc43efd3d6fdafcfc9cfe7d83ee7c3305edb4
/* $Id$ */
/** @file
* Copyright (C) 2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include <windows.h>
#include <d3d9types.h>
#include <d3d9caps.h>
#include <stdio.h>
#define DUMP_STRCASE(_t) \
#define DUMP_STRCASE_DEFAULT_DWORD(_dw) \
bool _fSep = false; \
if (_fSep) { \
} \
else { \
} \
} \
} while (0)
#define DUMP_STRIF_MISSED(_dw) do { \
if (_fFlags) { \
if (_fSep) { \
} \
else { \
} \
} \
} while (0)
/*
#define DUMP_DIFF_CAPS_VAL(_f, _name, _c1, _c2) do { \
DWORD dwTmp = MISSING_FLAGS((_c1), (_c2)); \
if (dwTmp) { _f(_name " |= ", " | ", dwTmp, ";\n"); } \
dwTmp = MISSING_FLAGS((_c2), (_c1)); \
if (dwTmp) { _f("// " _name " &= ~(", " | ", dwTmp, ");\n"); } \
} while (0)
#define DUMP_DIFF_CAPS_FIELD(_f, _field, _name, _c1, _c2) DUMP_DIFF_CAPS_VAL(_f, _name""_field, (_c1)->_field, (_c2)->_field)
*/
} while (0)
if (pCaps1->_field != pCaps2->_field) { Log(("pCaps->" #_field " = " _format "; // " _format " \n", pCaps2->_field, pCaps1->_field)); } \
} while (0)
{
switch(DeviceType)
{
}
}
static void printCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
// DUMP_STRIF(Caps, D3DCAPS_OVERLAY);
}
static void printCaps2(const char* pszPrefix, const char* pszSeparator, DWORD Caps2, const char* pszSuffix)
{
}
static void printCaps3(const char* pszPrefix, const char* pszSeparator, DWORD Caps3, const char* pszSuffix)
{
// DUMP_STRIF(Caps3, D3DCAPS3_DXVAHD);
}
static void printPresentationIntervals(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printCursorCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printDevCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printPrimitiveMiscCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printRasterCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printCmpCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printBlendCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printShadeCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printTextureCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printFilterCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printTextureAddressCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printLineCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printStencilCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printFVFCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printTextureOpCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printVertexProcessingCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printDevCaps2(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
static void printDeclTypes(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
}
#if 0
static void printXxxCaps(const char* pszPrefix, const char* pszSeparator, DWORD Caps, const char* pszSuffix)
{
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
DUMP_STRIF(Caps, );
}
#endif
{
{
}
/* non-caps */
/* caps */
/* non-caps */
/* caps */
/* non-caps */
/* D3D9 */
/* caps */
/* non-caps */
/* caps */
/* non-caps */
/* caps */
/* non-caps */
}
0x00000001, 0x00000000, 0x00000000, 0xe00a0000,
0x00000320, 0x80000001, 0x00000003, 0x0059aff1,
0x000e6ff2, 0x077363b1, 0x000000ff, 0x00003fff,
0x000023ff, 0x000000ff, 0x00084208, 0x0007eccd,
0x07030700, 0x07030700, 0x03030300, 0x0000003f,
0x0000003f, 0x0000001f, 0x00002000, 0x00002000,
0x00000800, 0x00008000, 0x00002000, 0x00000010,
0x3f800000, 0xc6000000, 0xc6000000, 0x46000000,
0x46000000, 0x00000000, 0x000001ff, 0x00100008,
0x03feffff, 0x00000008, 0x00000008, 0x0000003b,
0x00000008, 0x00000006, 0x00000001, 0x00000000,
0x427c0000, 0x000fffff, 0x000fffff, 0x00000010,
0x00000400, 0xfffe0200, 0x00000100, 0xffff0200,
0x41000000, 0x00000051, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000001, 0x0000030f,
0x00000001, 0x03000300, 0x00000000, 0x00000018,
0x00000020, 0x00000001, 0x00000000, 0x00000018,
0x00000020, 0x00000000, 0x00000060, 0x01000100,
0x0000ffff, 0x00000200, 0x00000000, 0x00000000
};
0x00000001, 0x00000000, 0x00020000, 0xe00a0000,
0x00000320, 0x80000001, 0x00000003, 0x0059aff1,
0x000e6ff2, 0x077263b1, 0x000000ff, 0x00003fff,
0x000023ff, 0x000000ff, 0x00084208, 0x0007eccd,
0x07030700, 0x07030700, 0x03030300, 0x0000003f,
0x0000003f, 0x0000001f, 0x00002000, 0x00002000,
0x00002000, 0x00008000, 0x00002000, 0x00000010,
0x3f800000, 0xc6000000, 0xc6000000, 0x46000000,
0x46000000, 0x00000000, 0x000001ff, 0x00100008,
0x03feffff, 0x00000008, 0x00000008, 0x0000003b,
0x00000008, 0x00000008, 0x00000001, 0x00000000,
0x46000000, 0x000fffff, 0x000fffff, 0x00000010,
0x00000400, 0xfffe0300, 0x00000100, 0xffff0300,
0x41000000, 0x00000051, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000001, 0x0000030f,
0x00000001, 0x03000300, 0x00000001, 0x00000018,
0x00000020, 0x00000004, 0x0000001f, 0x00000018,
0x00000020, 0x00000004, 0x00000200, 0x01000100,
0x0000ffff, 0x0000ffff, 0x00008000, 0x00008000
};
int main()
{
{
return 1;
}
{
return 1;
}
return 0;
}