2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS ReactX
4 * FILE: dll/directx/d3d9/d3d9.c
5 * PURPOSE: d3d9.dll implementation
6 * PROGRAMERS: Magnus Olsen <greatlrd (at) reactos (dot) org>
7 * Gregor Brunmar <gregor (dot) brunmar (at) home (dot) se>
11 #include "d3d9_private.h"
12 #include "d3d9_helpers.h"
17 HRESULT
Direct3DShaderValidatorCreate9(void)
24 HRESULT
PSGPError(void)
31 HRESULT
PSGPSampleTexture(void)
38 HRESULT
DebugSetLevel(void)
45 HRESULT
DebugSetMute(DWORD dw1
)
52 IDirect3D9
* WINAPI
Direct3DCreate9(UINT SDKVersion
)
56 DWORD LoadDebugDllSize
;
57 LPDIRECT3D9 D3D9Obj
= 0;
58 LPDIRECT3DCREATE9 DebugDirect3DCreate9
= 0;
62 LoadDebugDllSize
= sizeof(LoadDebugDll
);
63 if (ReadRegistryValue(REG_DWORD
, "LoadDebugRuntime", (LPBYTE
)&LoadDebugDll
, &LoadDebugDllSize
))
65 if (0 != LoadDebugDll
)
67 hDebugDll
= LoadLibrary("d3d9d.dll");
71 DebugDirect3DCreate9
= (LPDIRECT3DCREATE9
)GetProcAddress(hDebugDll
, "Direct3DCreate9");
73 D3D9Obj
= DebugDirect3DCreate9(SDKVersion
);
81 BOOL APIENTRY
DllMain(HANDLE hModule
, DWORD ul_reason_for_call
, LPVOID lpReserved
)
83 switch (ul_reason_for_call
)
85 case DLL_PROCESS_ATTACH
:
86 case DLL_THREAD_ATTACH
:
87 case DLL_THREAD_DETACH
:
88 case DLL_PROCESS_DETACH
: