2003-07-01 03:09:17 +02:00
|
|
|
/*
|
|
|
|
* IDirect3D9 implementation
|
|
|
|
*
|
|
|
|
* Copyright 2002 Jason Edmeades
|
2005-06-17 11:59:03 +02:00
|
|
|
* Copyright 2005 Oliver Stieber
|
2003-07-01 03:09:17 +02:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-07-01 03:09:17 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "d3d9_private.h"
|
|
|
|
|
2005-08-23 11:34:57 +02:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(d3d9);
|
2003-07-01 03:09:17 +02:00
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static inline IDirect3D9Impl *impl_from_IDirect3D9Ex(IDirect3D9Ex *iface)
|
2003-07-01 03:09:17 +02:00
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
return CONTAINING_RECORD(iface, IDirect3D9Impl, IDirect3D9Ex_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI IDirect3D9Impl_QueryInterface(IDirect3D9Ex *iface, REFIID riid, void **ppobj)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2003-07-01 03:09:17 +02:00
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), ppobj);
|
|
|
|
|
2003-07-01 03:09:17 +02:00
|
|
|
if (IsEqualGUID(riid, &IID_IUnknown)
|
|
|
|
|| IsEqualGUID(riid, &IID_IDirect3D9)) {
|
2008-11-02 23:49:40 +01:00
|
|
|
IDirect3D9Ex_AddRef(iface);
|
2003-07-01 03:09:17 +02:00
|
|
|
*ppobj = This;
|
2008-02-28 21:10:46 +01:00
|
|
|
TRACE("Returning IDirect3D9 interface at %p\n", *ppobj);
|
2006-06-07 15:13:29 +02:00
|
|
|
return S_OK;
|
2008-02-28 21:10:46 +01:00
|
|
|
} else if(IsEqualGUID(riid, &IID_IDirect3D9Ex)) {
|
2008-02-28 21:25:35 +01:00
|
|
|
if(This->extended) {
|
2009-01-29 11:15:39 +01:00
|
|
|
*ppobj = This;
|
2008-02-28 21:25:35 +01:00
|
|
|
TRACE("Returning IDirect3D9Ex interface at %p\n", *ppobj);
|
|
|
|
IDirect3D9Ex_AddRef((IDirect3D9Ex *)*ppobj);
|
|
|
|
} else {
|
|
|
|
WARN("Application asks for IDirect3D9Ex, but this instance wasn't created with Direct3DCreate9Ex\n");
|
|
|
|
WARN("Returning E_NOINTERFACE\n");
|
|
|
|
*ppobj = NULL;
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
WARN("(%p)->(%s,%p),not found\n", This, debugstr_guid(riid), ppobj);
|
2006-06-07 15:13:29 +02:00
|
|
|
*ppobj = NULL;
|
2003-07-01 03:09:17 +02:00
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static ULONG WINAPI IDirect3D9Impl_AddRef(IDirect3D9Ex *iface)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2005-01-24 12:31:45 +01:00
|
|
|
ULONG ref = InterlockedIncrement(&This->ref);
|
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
TRACE("%p increasing refcount to %u.\n", iface, ref);
|
2005-01-24 12:31:45 +01:00
|
|
|
|
|
|
|
return ref;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static ULONG WINAPI IDirect3D9Impl_Release(IDirect3D9Ex *iface)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2005-01-24 12:31:45 +01:00
|
|
|
ULONG ref = InterlockedDecrement(&This->ref);
|
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
TRACE("%p decreasing refcount to %u.\n", iface, ref);
|
2005-01-24 12:31:45 +01:00
|
|
|
|
2004-09-28 04:12:12 +02:00
|
|
|
if (ref == 0) {
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
wined3d_decref(This->WineD3D);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2003-07-01 03:09:17 +02:00
|
|
|
HeapFree(GetProcessHeap(), 0, This);
|
2004-09-28 04:12:12 +02:00
|
|
|
}
|
|
|
|
|
2003-07-01 03:09:17 +02:00
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* IDirect3D9 Interface follow: */
|
2011-04-10 22:20:18 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_RegisterSoftwareDevice(IDirect3D9Ex *iface,
|
|
|
|
void *pInitializeFunction)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, init_function %p.\n", iface, pInitializeFunction);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_register_software_device(This->WineD3D, pInitializeFunction);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static UINT WINAPI IDirect3D9Impl_GetAdapterCount(IDirect3D9Ex *iface)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p.\n", iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_get_adapter_count(This->WineD3D);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_GetAdapterIdentifier(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
DWORD Flags, D3DADAPTER_IDENTIFIER9 *pIdentifier)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2004-09-29 23:26:47 +02:00
|
|
|
WINED3DADAPTER_IDENTIFIER adapter_id;
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2004-09-29 23:26:47 +02:00
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
TRACE("iface %p, adapter %u, flags %#x, identifier %p.\n",
|
|
|
|
iface, Adapter, Flags, pIdentifier);
|
|
|
|
|
2009-07-07 11:08:03 +02:00
|
|
|
adapter_id.driver = pIdentifier->Driver;
|
|
|
|
adapter_id.driver_size = sizeof(pIdentifier->Driver);
|
|
|
|
adapter_id.description = pIdentifier->Description;
|
|
|
|
adapter_id.description_size = sizeof(pIdentifier->Description);
|
|
|
|
adapter_id.device_name = pIdentifier->DeviceName;
|
|
|
|
adapter_id.device_name_size = sizeof(pIdentifier->DeviceName);
|
2004-09-29 23:26:47 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_get_adapter_identifier(This->WineD3D, Adapter, Flags, &adapter_id);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
2009-07-07 11:08:03 +02:00
|
|
|
|
|
|
|
pIdentifier->DriverVersion = adapter_id.driver_version;
|
|
|
|
pIdentifier->VendorId = adapter_id.vendor_id;
|
|
|
|
pIdentifier->DeviceId = adapter_id.device_id;
|
|
|
|
pIdentifier->SubSysId = adapter_id.subsystem_id;
|
|
|
|
pIdentifier->Revision = adapter_id.revision;
|
|
|
|
memcpy(&pIdentifier->DeviceIdentifier, &adapter_id.device_identifier, sizeof(pIdentifier->DeviceIdentifier));
|
|
|
|
pIdentifier->WHQLLevel = adapter_id.whql_level;
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static UINT WINAPI IDirect3D9Impl_GetAdapterModeCount(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
D3DFORMAT Format)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, format %#x.\n", iface, Adapter, Format);
|
2007-04-13 16:38:10 +02:00
|
|
|
|
|
|
|
/* Others than that not supported by d3d9, but reported by wined3d for ddraw. Filter them out */
|
2007-04-17 09:20:54 +02:00
|
|
|
if(Format != D3DFMT_X8R8G8B8 && Format != D3DFMT_R5G6B5) {
|
2007-04-13 16:38:10 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_get_adapter_mode_count(This->WineD3D, Adapter, wined3dformat_from_d3dformat(Format));
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_EnumAdapterModes(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
D3DFORMAT Format, UINT Mode, D3DDISPLAYMODE *pMode)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, format %#x, mode_idx %u, mode %p.\n",
|
|
|
|
iface, Adapter, Format, Mode, pMode);
|
|
|
|
|
2007-04-13 16:38:10 +02:00
|
|
|
/* We can't pass this to WineD3D, otherwise it'll think it came from D3D8 or DDraw.
|
2006-12-20 13:44:08 +01:00
|
|
|
It's supposed to fail anyway, so no harm returning failure. */
|
2009-02-19 16:59:42 +01:00
|
|
|
if(Format != D3DFMT_X8R8G8B8 && Format != D3DFMT_R5G6B5)
|
2006-12-20 13:44:08 +01:00
|
|
|
return D3DERR_INVALIDCALL;
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_enum_adapter_modes(This->WineD3D, Adapter, wined3dformat_from_d3dformat(Format),
|
2009-02-19 16:59:42 +01:00
|
|
|
Mode, (WINED3DDISPLAYMODE *) pMode);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
2009-02-19 16:59:42 +01:00
|
|
|
|
|
|
|
if (SUCCEEDED(hr)) pMode->Format = d3dformat_from_wined3dformat(pMode->Format);
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_GetAdapterDisplayMode(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
D3DDISPLAYMODE *pMode)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2009-02-19 16:59:42 +01:00
|
|
|
HRESULT hr;
|
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
TRACE("iface %p, adapter %u, mode %p.\n", iface, Adapter, pMode);
|
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_get_adapter_display_mode(This->WineD3D, Adapter, (WINED3DDISPLAYMODE *)pMode);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
2009-03-23 08:30:16 +01:00
|
|
|
|
2009-02-19 16:59:42 +01:00
|
|
|
if (SUCCEEDED(hr)) pMode->Format = d3dformat_from_wined3dformat(pMode->Format);
|
|
|
|
|
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2009-08-26 10:18:08 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_CheckDeviceType(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
D3DDEVTYPE CheckType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL Windowed)
|
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, display_format %#x, backbuffer_format %#x, windowed %#x.\n",
|
|
|
|
iface, Adapter, CheckType, DisplayFormat, BackBufferFormat, Windowed);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_check_device_type(This->WineD3D, Adapter, CheckType, wined3dformat_from_d3dformat(DisplayFormat),
|
2009-02-19 16:59:42 +01:00
|
|
|
wined3dformat_from_d3dformat(BackBufferFormat), Windowed);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_CheckDeviceFormat(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType,
|
|
|
|
D3DFORMAT CheckFormat)
|
2009-08-26 10:18:08 +02:00
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-04-06 16:44:00 +02:00
|
|
|
WINED3DRESOURCETYPE WineD3DRType;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, adapter_format %#x, usage %#x, resource_type %#x, format %#x.\n",
|
|
|
|
iface, Adapter, DeviceType, AdapterFormat, Usage, RType, CheckFormat);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-05 20:55:51 +02:00
|
|
|
/* This format is nothing special and it is supported perfectly.
|
|
|
|
* However, ati and nvidia driver on windows do not mark this format as
|
|
|
|
* supported (tested with the dxCapsViewer) and pretending to
|
|
|
|
* support this format uncovers a bug in Battlefield 1942 (fonts are missing)
|
|
|
|
* So do the same as Windows drivers and pretend not to support it on dx8 and 9
|
|
|
|
*/
|
|
|
|
if(CheckFormat == D3DFMT_R8G8B8)
|
|
|
|
{
|
|
|
|
WARN("D3DFMT_R8G8B8 is not available on windows, returning D3DERR_NOTAVAILABLE\n");
|
|
|
|
return D3DERR_NOTAVAILABLE;
|
|
|
|
}
|
|
|
|
|
2009-04-06 16:44:00 +02:00
|
|
|
switch(RType) {
|
|
|
|
case D3DRTYPE_VERTEXBUFFER:
|
|
|
|
case D3DRTYPE_INDEXBUFFER:
|
|
|
|
WineD3DRType = WINED3DRTYPE_BUFFER;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
WineD3DRType = RType;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_check_device_format(This->WineD3D, Adapter, DeviceType, wined3dformat_from_d3dformat(AdapterFormat),
|
2009-04-06 16:44:00 +02:00
|
|
|
Usage, WineD3DRType, wined3dformat_from_d3dformat(CheckFormat), SURFACE_OPENGL);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2009-08-26 10:18:08 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_CheckDeviceMultiSampleType(IDirect3D9Ex *iface, UINT Adapter,
|
2011-04-10 22:20:18 +02:00
|
|
|
D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed,
|
|
|
|
D3DMULTISAMPLE_TYPE MultiSampleType, DWORD *pQualityLevels)
|
2009-08-26 10:18:08 +02:00
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, format %#x, windowed %#x, multisample_type %#x, levels %p.\n",
|
|
|
|
iface, Adapter, DeviceType, SurfaceFormat, Windowed, MultiSampleType, pQualityLevels);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_check_device_multisample_type(This->WineD3D, Adapter, DeviceType,
|
2009-02-19 16:59:42 +01:00
|
|
|
wined3dformat_from_d3dformat(SurfaceFormat), Windowed, MultiSampleType, pQualityLevels);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2009-08-26 10:18:08 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_CheckDepthStencilMatch(IDirect3D9Ex *iface, UINT Adapter,
|
2011-04-10 22:20:18 +02:00
|
|
|
D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat,
|
|
|
|
D3DFORMAT DepthStencilFormat)
|
2009-08-26 10:18:08 +02:00
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, adapter_format %#x, rt_format %#x, ds_format %#x.\n",
|
|
|
|
iface, Adapter, DeviceType, AdapterFormat, RenderTargetFormat, DepthStencilFormat);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_check_depth_stencil_match(This->WineD3D, Adapter, DeviceType,
|
2009-02-19 16:59:42 +01:00
|
|
|
wined3dformat_from_d3dformat(AdapterFormat), wined3dformat_from_d3dformat(RenderTargetFormat),
|
|
|
|
wined3dformat_from_d3dformat(DepthStencilFormat));
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_CheckDeviceFormatConversion(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
D3DDEVTYPE DeviceType, D3DFORMAT SourceFormat, D3DFORMAT TargetFormat)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, src_format %#x, dst_format %#x.\n",
|
|
|
|
iface, Adapter, DeviceType, SourceFormat, TargetFormat);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_check_device_format_conversion(This->WineD3D, Adapter, DeviceType,
|
2009-02-19 16:59:42 +01:00
|
|
|
wined3dformat_from_d3dformat(SourceFormat), wined3dformat_from_d3dformat(TargetFormat));
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return hr;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2007-08-21 12:13:42 +02:00
|
|
|
void filter_caps(D3DCAPS9* pCaps)
|
|
|
|
{
|
|
|
|
|
|
|
|
DWORD textureFilterCaps =
|
|
|
|
D3DPTFILTERCAPS_MINFPOINT | D3DPTFILTERCAPS_MINFLINEAR | D3DPTFILTERCAPS_MINFANISOTROPIC |
|
|
|
|
D3DPTFILTERCAPS_MINFPYRAMIDALQUAD | D3DPTFILTERCAPS_MINFGAUSSIANQUAD|
|
|
|
|
D3DPTFILTERCAPS_MIPFPOINT | D3DPTFILTERCAPS_MIPFLINEAR | D3DPTFILTERCAPS_MAGFPOINT |
|
|
|
|
D3DPTFILTERCAPS_MAGFLINEAR |D3DPTFILTERCAPS_MAGFANISOTROPIC|D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD|
|
|
|
|
D3DPTFILTERCAPS_MAGFGAUSSIANQUAD;
|
|
|
|
pCaps->TextureFilterCaps &= textureFilterCaps;
|
|
|
|
pCaps->CubeTextureFilterCaps &= textureFilterCaps;
|
|
|
|
pCaps->VolumeTextureFilterCaps &= textureFilterCaps;
|
|
|
|
|
|
|
|
pCaps->DevCaps &=
|
|
|
|
D3DDEVCAPS_EXECUTESYSTEMMEMORY | D3DDEVCAPS_EXECUTEVIDEOMEMORY | D3DDEVCAPS_TLVERTEXSYSTEMMEMORY |
|
|
|
|
D3DDEVCAPS_TLVERTEXVIDEOMEMORY | D3DDEVCAPS_TEXTURESYSTEMMEMORY| D3DDEVCAPS_TEXTUREVIDEOMEMORY |
|
|
|
|
D3DDEVCAPS_DRAWPRIMTLVERTEX | D3DDEVCAPS_CANRENDERAFTERFLIP | D3DDEVCAPS_TEXTURENONLOCALVIDMEM|
|
|
|
|
D3DDEVCAPS_DRAWPRIMITIVES2 | D3DDEVCAPS_SEPARATETEXTUREMEMORIES |
|
|
|
|
D3DDEVCAPS_DRAWPRIMITIVES2EX | D3DDEVCAPS_HWTRANSFORMANDLIGHT| D3DDEVCAPS_CANBLTSYSTONONLOCAL |
|
|
|
|
D3DDEVCAPS_HWRASTERIZATION | D3DDEVCAPS_PUREDEVICE | D3DDEVCAPS_QUINTICRTPATCHES |
|
|
|
|
D3DDEVCAPS_RTPATCHES | D3DDEVCAPS_RTPATCHHANDLEZERO | D3DDEVCAPS_NPATCHES;
|
|
|
|
|
|
|
|
pCaps->ShadeCaps &=
|
|
|
|
D3DPSHADECAPS_COLORGOURAUDRGB | D3DPSHADECAPS_SPECULARGOURAUDRGB |
|
|
|
|
D3DPSHADECAPS_ALPHAGOURAUDBLEND | D3DPSHADECAPS_FOGGOURAUD;
|
|
|
|
|
|
|
|
pCaps->RasterCaps &=
|
|
|
|
D3DPRASTERCAPS_DITHER | D3DPRASTERCAPS_ZTEST | D3DPRASTERCAPS_FOGVERTEX |
|
|
|
|
D3DPRASTERCAPS_FOGTABLE | D3DPRASTERCAPS_MIPMAPLODBIAS | D3DPRASTERCAPS_ZBUFFERLESSHSR |
|
|
|
|
D3DPRASTERCAPS_FOGRANGE | D3DPRASTERCAPS_ANISOTROPY | D3DPRASTERCAPS_WBUFFER |
|
|
|
|
D3DPRASTERCAPS_WFOG | D3DPRASTERCAPS_ZFOG | D3DPRASTERCAPS_COLORPERSPECTIVE |
|
|
|
|
D3DPRASTERCAPS_SCISSORTEST | D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS |
|
|
|
|
D3DPRASTERCAPS_DEPTHBIAS | D3DPRASTERCAPS_MULTISAMPLE_TOGGLE;
|
|
|
|
|
|
|
|
pCaps->DevCaps2 &=
|
|
|
|
D3DDEVCAPS2_STREAMOFFSET | D3DDEVCAPS2_DMAPNPATCH | D3DDEVCAPS2_ADAPTIVETESSRTPATCH |
|
|
|
|
D3DDEVCAPS2_ADAPTIVETESSNPATCH | D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES |
|
|
|
|
D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH| D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET;
|
|
|
|
|
|
|
|
pCaps->Caps2 &=
|
|
|
|
D3DCAPS2_FULLSCREENGAMMA | D3DCAPS2_CANCALIBRATEGAMMA | D3DCAPS2_RESERVED |
|
|
|
|
D3DCAPS2_CANMANAGERESOURCE | D3DCAPS2_DYNAMICTEXTURES | D3DCAPS2_CANAUTOGENMIPMAP;
|
|
|
|
|
|
|
|
pCaps->VertexProcessingCaps &=
|
|
|
|
D3DVTXPCAPS_TEXGEN | D3DVTXPCAPS_MATERIALSOURCE7 | D3DVTXPCAPS_DIRECTIONALLIGHTS |
|
|
|
|
D3DVTXPCAPS_POSITIONALLIGHTS | D3DVTXPCAPS_LOCALVIEWER | D3DVTXPCAPS_TWEENING |
|
|
|
|
D3DVTXPCAPS_TEXGEN_SPHEREMAP | D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER;
|
|
|
|
|
|
|
|
pCaps->TextureCaps &=
|
|
|
|
D3DPTEXTURECAPS_PERSPECTIVE | D3DPTEXTURECAPS_POW2 | D3DPTEXTURECAPS_ALPHA |
|
|
|
|
D3DPTEXTURECAPS_SQUAREONLY | D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE |
|
|
|
|
D3DPTEXTURECAPS_ALPHAPALETTE | D3DPTEXTURECAPS_NONPOW2CONDITIONAL |
|
|
|
|
D3DPTEXTURECAPS_PROJECTED | D3DPTEXTURECAPS_CUBEMAP | D3DPTEXTURECAPS_VOLUMEMAP |
|
|
|
|
D3DPTEXTURECAPS_MIPMAP | D3DPTEXTURECAPS_MIPVOLUMEMAP | D3DPTEXTURECAPS_MIPCUBEMAP |
|
|
|
|
D3DPTEXTURECAPS_CUBEMAP_POW2 | D3DPTEXTURECAPS_VOLUMEMAP_POW2| D3DPTEXTURECAPS_NOPROJECTEDBUMPENV;
|
2009-04-25 15:02:42 +02:00
|
|
|
|
|
|
|
pCaps->MaxVertexShaderConst = min(D3D9_MAX_VERTEX_SHADER_CONSTANTF, pCaps->MaxVertexShaderConst);
|
2009-09-20 21:58:45 +02:00
|
|
|
pCaps->NumSimultaneousRTs = min(D3D9_MAX_SIMULTANEOUS_RENDERTARGETS, pCaps->NumSimultaneousRTs);
|
2007-08-21 12:13:42 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9Impl_GetDeviceCaps(IDirect3D9Ex *iface, UINT Adapter,
|
|
|
|
D3DDEVTYPE DeviceType, D3DCAPS9 *pCaps)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2005-06-17 11:59:03 +02:00
|
|
|
HRESULT hrc = D3D_OK;
|
|
|
|
WINED3DCAPS *pWineCaps;
|
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, caps %p.\n", iface, Adapter, DeviceType, pCaps);
|
2005-06-17 11:59:03 +02:00
|
|
|
|
|
|
|
if(NULL == pCaps){
|
|
|
|
return D3DERR_INVALIDCALL;
|
|
|
|
}
|
|
|
|
pWineCaps = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WINED3DCAPS));
|
|
|
|
if(pWineCaps == NULL){
|
|
|
|
return D3DERR_INVALIDCALL; /*well this is what MSDN says to return*/
|
|
|
|
}
|
2007-08-21 12:13:42 +02:00
|
|
|
memset(pCaps, 0, sizeof(*pCaps));
|
2009-08-26 10:18:09 +02:00
|
|
|
|
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hrc = wined3d_get_device_caps(This->WineD3D, Adapter, DeviceType, pWineCaps);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2008-03-18 19:26:00 +01:00
|
|
|
WINECAPSTOD3D9CAPS(pCaps, pWineCaps)
|
2005-06-17 11:59:03 +02:00
|
|
|
HeapFree(GetProcessHeap(), 0, pWineCaps);
|
2007-01-12 00:08:29 +01:00
|
|
|
|
|
|
|
/* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
|
2007-01-12 23:13:58 +01:00
|
|
|
pCaps->DevCaps2 |= D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES;
|
2007-08-21 12:13:42 +02:00
|
|
|
|
|
|
|
filter_caps(pCaps);
|
|
|
|
|
2005-06-17 11:59:03 +02:00
|
|
|
TRACE("(%p) returning %p\n", This, pCaps);
|
|
|
|
return hrc;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2011-04-10 22:20:18 +02:00
|
|
|
static HMONITOR WINAPI IDirect3D9Impl_GetAdapterMonitor(IDirect3D9Ex *iface, UINT Adapter)
|
|
|
|
{
|
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2007-06-10 17:32:37 +02:00
|
|
|
HMONITOR ret;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u.\n", iface, Adapter);
|
2007-06-10 17:32:37 +02:00
|
|
|
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
ret = wined3d_get_adapter_monitor(This->WineD3D, Adapter);
|
2009-08-26 10:18:09 +02:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
2007-06-10 17:32:37 +02:00
|
|
|
return ret;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2009-11-18 10:45:50 +01:00
|
|
|
static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3D9Impl_CreateDevice(IDirect3D9Ex *iface, UINT adapter,
|
|
|
|
D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters,
|
|
|
|
IDirect3DDevice9 **device)
|
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2009-11-18 10:45:50 +01:00
|
|
|
IDirect3DDevice9Impl *object;
|
2005-06-23 13:05:24 +02:00
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, focus_window %p, flags %#x, parameters %p, device %p.\n",
|
2009-11-18 10:45:50 +01:00
|
|
|
iface, adapter, device_type, focus_window, flags, parameters, device);
|
2006-04-12 21:08:57 +02:00
|
|
|
|
2009-11-18 10:45:50 +01:00
|
|
|
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
|
|
|
if (!object)
|
2009-03-11 10:15:10 +01:00
|
|
|
{
|
2009-11-18 10:45:50 +01:00
|
|
|
ERR("Failed to allocate device memory.\n");
|
|
|
|
return E_OUTOFMEMORY;
|
2009-03-11 10:15:10 +01:00
|
|
|
}
|
2007-02-15 22:36:50 +01:00
|
|
|
|
2010-10-27 11:36:16 +02:00
|
|
|
hr = device_init(object, This->WineD3D, adapter, device_type, focus_window, flags, parameters, NULL);
|
2009-11-18 10:45:50 +01:00
|
|
|
if (FAILED(hr))
|
2009-03-11 10:15:10 +01:00
|
|
|
{
|
2009-11-18 10:45:50 +01:00
|
|
|
WARN("Failed to initialize device, hr %#x.\n", hr);
|
2005-06-23 13:05:24 +02:00
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
2009-11-18 10:45:50 +01:00
|
|
|
return hr;
|
2005-06-23 13:05:24 +02:00
|
|
|
}
|
2009-03-11 10:15:10 +01:00
|
|
|
|
2009-11-18 10:45:50 +01:00
|
|
|
TRACE("Created device %p.\n", object);
|
|
|
|
*device = (IDirect3DDevice9 *)object;
|
2007-03-04 17:03:03 +01:00
|
|
|
|
2009-11-18 10:45:50 +01:00
|
|
|
return D3D_OK;
|
2003-07-01 03:09:17 +02:00
|
|
|
}
|
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
static UINT WINAPI IDirect3D9ExImpl_GetAdapterModeCountEx(IDirect3D9Ex *iface,
|
|
|
|
UINT adapter, const D3DDISPLAYMODEFILTER *filter)
|
|
|
|
{
|
|
|
|
FIXME("iface %p, adapter %u, filter %p stub!\n", iface, adapter, filter);
|
|
|
|
|
2010-10-27 11:36:17 +02:00
|
|
|
return E_NOTIMPL;
|
2008-02-28 21:10:46 +01:00
|
|
|
}
|
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9ExImpl_EnumAdapterModesEx(IDirect3D9Ex *iface,
|
|
|
|
UINT adapter, const D3DDISPLAYMODEFILTER *filter, UINT mode_idx, D3DDISPLAYMODEEX *mode)
|
|
|
|
{
|
|
|
|
FIXME("iface %p, adapter %u, filter %p, mode_idx %u, mode %p stub!\n",
|
|
|
|
iface, adapter, filter, mode_idx, mode);
|
|
|
|
|
2010-10-27 11:36:17 +02:00
|
|
|
return E_NOTIMPL;
|
2008-02-28 21:10:46 +01:00
|
|
|
}
|
2005-06-23 13:05:24 +02:00
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9ExImpl_GetAdapterDisplayModeEx(IDirect3D9Ex *iface,
|
|
|
|
UINT adapter, D3DDISPLAYMODEEX *mode, D3DDISPLAYROTATION *rotation)
|
|
|
|
{
|
|
|
|
FIXME("iface %p, adapter %u, mode %p, rotation %p stub!\n",
|
|
|
|
iface, adapter, mode, rotation);
|
|
|
|
|
2010-10-27 11:36:17 +02:00
|
|
|
return E_NOTIMPL;
|
2008-02-28 21:10:46 +01:00
|
|
|
}
|
2005-06-23 13:05:24 +02:00
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3D9ExImpl_CreateDeviceEx(IDirect3D9Ex *iface,
|
|
|
|
UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags,
|
|
|
|
D3DPRESENT_PARAMETERS *parameters, D3DDISPLAYMODEEX *mode, IDirect3DDevice9Ex **device)
|
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
IDirect3D9Impl *d3d9 = impl_from_IDirect3D9Ex(iface);
|
2010-10-27 11:36:16 +02:00
|
|
|
IDirect3DDevice9Impl *object;
|
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
2010-10-27 11:36:16 +02:00
|
|
|
TRACE("iface %p, adapter %u, device_type %#x, focus_window %p, flags %#x, parameters %p, mode %p, device %p.\n",
|
|
|
|
iface, adapter, device_type, focus_window, flags, parameters, mode, device);
|
2009-10-20 11:05:02 +02:00
|
|
|
|
2010-10-27 11:36:16 +02:00
|
|
|
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
|
|
|
if (!object)
|
|
|
|
{
|
|
|
|
ERR("Failed to allocate device memory.\n");
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr = device_init(object, d3d9->WineD3D, adapter, device_type, focus_window, flags, parameters, mode);
|
|
|
|
if (FAILED(hr))
|
|
|
|
{
|
|
|
|
WARN("Failed to initialize device, hr %#x.\n", hr);
|
|
|
|
HeapFree(GetProcessHeap(), 0, object);
|
|
|
|
return hr;
|
|
|
|
}
|
|
|
|
|
|
|
|
TRACE("Created device %p.\n", object);
|
2011-04-24 21:34:30 +02:00
|
|
|
*device = &object->IDirect3DDevice9Ex_iface;
|
2010-10-27 11:36:16 +02:00
|
|
|
|
|
|
|
return D3D_OK;
|
2008-02-28 21:10:46 +01:00
|
|
|
}
|
|
|
|
|
2009-10-20 11:05:02 +02:00
|
|
|
static HRESULT WINAPI IDirect3D9ExImpl_GetAdapterLUID(IDirect3D9Ex *iface, UINT adapter, LUID *luid)
|
|
|
|
{
|
2011-04-10 22:20:18 +02:00
|
|
|
IDirect3D9Impl *This = impl_from_IDirect3D9Ex(iface);
|
2009-12-02 10:41:23 +01:00
|
|
|
WINED3DADAPTER_IDENTIFIER adapter_id;
|
|
|
|
HRESULT hr;
|
2009-10-20 11:05:02 +02:00
|
|
|
|
2009-12-02 10:41:23 +01:00
|
|
|
TRACE("iface %p, adapter %u, luid %p.\n", iface, adapter, luid);
|
|
|
|
|
|
|
|
adapter_id.driver_size = 0;
|
|
|
|
adapter_id.description_size = 0;
|
|
|
|
adapter_id.device_name_size = 0;
|
|
|
|
|
|
|
|
wined3d_mutex_lock();
|
2011-02-01 19:39:53 +01:00
|
|
|
hr = wined3d_get_adapter_identifier(This->WineD3D, adapter, 0, &adapter_id);
|
2009-12-02 10:41:23 +01:00
|
|
|
wined3d_mutex_unlock();
|
|
|
|
|
|
|
|
memcpy(luid, &adapter_id.adapter_luid, sizeof(*luid));
|
|
|
|
|
|
|
|
return hr;
|
2008-02-28 21:10:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const IDirect3D9ExVtbl Direct3D9_Vtbl =
|
2003-07-01 03:09:17 +02:00
|
|
|
{
|
2005-08-23 11:34:57 +02:00
|
|
|
/* IUnknown */
|
2003-07-01 03:09:17 +02:00
|
|
|
IDirect3D9Impl_QueryInterface,
|
|
|
|
IDirect3D9Impl_AddRef,
|
|
|
|
IDirect3D9Impl_Release,
|
2005-08-23 11:34:57 +02:00
|
|
|
/* IDirect3D9 */
|
2003-07-01 03:09:17 +02:00
|
|
|
IDirect3D9Impl_RegisterSoftwareDevice,
|
|
|
|
IDirect3D9Impl_GetAdapterCount,
|
|
|
|
IDirect3D9Impl_GetAdapterIdentifier,
|
|
|
|
IDirect3D9Impl_GetAdapterModeCount,
|
|
|
|
IDirect3D9Impl_EnumAdapterModes,
|
|
|
|
IDirect3D9Impl_GetAdapterDisplayMode,
|
|
|
|
IDirect3D9Impl_CheckDeviceType,
|
|
|
|
IDirect3D9Impl_CheckDeviceFormat,
|
|
|
|
IDirect3D9Impl_CheckDeviceMultiSampleType,
|
|
|
|
IDirect3D9Impl_CheckDepthStencilMatch,
|
|
|
|
IDirect3D9Impl_CheckDeviceFormatConversion,
|
|
|
|
IDirect3D9Impl_GetDeviceCaps,
|
|
|
|
IDirect3D9Impl_GetAdapterMonitor,
|
2008-02-28 21:10:46 +01:00
|
|
|
IDirect3D9Impl_CreateDevice,
|
|
|
|
/* IDirect3D9Ex */
|
|
|
|
IDirect3D9ExImpl_GetAdapterModeCountEx,
|
|
|
|
IDirect3D9ExImpl_EnumAdapterModesEx,
|
|
|
|
IDirect3D9ExImpl_GetAdapterDisplayModeEx,
|
|
|
|
IDirect3D9ExImpl_CreateDeviceEx,
|
|
|
|
IDirect3D9ExImpl_GetAdapterLUID
|
|
|
|
|
2003-07-01 03:09:17 +02:00
|
|
|
};
|