d3d9_main.c revision c58f1213e628a545081c70e26c6b67a841cff880
/* $Id$ */
/** @file
* VBox D3D8 dll switcher
*/
/*
* Copyright (C) 2012 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 "d3d9.h"
#include "switcher.h"
typedef void (WINAPI *DebugSetMuteProc)(void);
/* @todo: this does not return a value according to MSDN */
typedef void* (WINAPI *Direct3DShaderValidatorCreate9Proc)(void);
typedef int (WINAPI *D3DPERF_EndEventProc)(void);
static void WINAPI vboxDebugSetMuteStub(void)
{
}
{
return NULL;
}
{
if (direct3d9ex)
*direct3d9ex = NULL;
return E_FAIL;
}
static void* WINAPI vboxDirect3DShaderValidatorCreate9Stub(void)
{
return NULL;
}
{
return 0;
}
static int WINAPI vboxD3DPERF_EndEventStub(void)
{
return 0;
}
{
return 0;
}
{
}
{
return 0;
}
{
}
{
}
typedef struct _D3D9ExTag
{
int initialized;
const char *vboxName;
const char *msName;
} D3D9Export;
#ifdef VBOX_WDDM_WOW64
#else
#endif
{
}
void WINAPI DebugSetMute(void)
{
}
{
}
{
}
void* WINAPI Direct3DShaderValidatorCreate9(void)
{
return g_swd3d9.pDirect3DShaderValidatorCreate9();
}
{
}
int WINAPI D3DPERF_EndEvent(void)
{
return g_swd3d9.pD3DPERF_EndEvent();
}
{
return g_swd3d9.pD3DPERF_GetStatus();
}
{
}
{
return g_swd3d9.pD3DPERF_QueryRepeatFrame();
}
{
}
{
}