Commit e72db8de authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

dxgi: Implement CreateDXGIFactory2().

parent f2d8491e
@ stdcall CreateDXGIFactory(ptr ptr) @ stdcall CreateDXGIFactory(ptr ptr)
@ stdcall CreateDXGIFactory1(ptr ptr) @ stdcall CreateDXGIFactory1(ptr ptr)
@ stdcall CreateDXGIFactory2(long ptr ptr)
@ stdcall DXGID3D10CreateDevice(ptr ptr ptr long ptr long ptr) @ stdcall DXGID3D10CreateDevice(ptr ptr ptr long ptr long ptr)
@ stdcall DXGID3D10RegisterLayers(ptr long) @ stdcall DXGID3D10RegisterLayers(ptr long)
...@@ -56,18 +56,28 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved) ...@@ -56,18 +56,28 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
return TRUE; return TRUE;
} }
HRESULT WINAPI CreateDXGIFactory1(REFIID riid, void **factory) HRESULT WINAPI CreateDXGIFactory2(UINT flags, REFIID iid, void **factory)
{ {
TRACE("riid %s, factory %p\n", debugstr_guid(riid), factory); TRACE("flags %#x, iid %s, factory %p.\n", flags, debugstr_guid(iid), factory);
return dxgi_factory_create(riid, factory, TRUE); if (flags)
FIXME("Ignoring flags %#x.\n", flags);
return dxgi_factory_create(iid, factory, TRUE);
}
HRESULT WINAPI CreateDXGIFactory1(REFIID iid, void **factory)
{
TRACE("iid %s, factory %p.\n", debugstr_guid(iid), factory);
return dxgi_factory_create(iid, factory, TRUE);
} }
HRESULT WINAPI CreateDXGIFactory(REFIID riid, void **factory) HRESULT WINAPI CreateDXGIFactory(REFIID iid, void **factory)
{ {
TRACE("riid %s, factory %p\n", debugstr_guid(riid), factory); TRACE("iid %s, factory %p.\n", debugstr_guid(iid), factory);
return dxgi_factory_create(riid, factory, FALSE); return dxgi_factory_create(iid, factory, FALSE);
} }
static BOOL get_layer(enum dxgi_device_layer_id id, struct dxgi_device_layer *layer) static BOOL get_layer(enum dxgi_device_layer_id id, struct dxgi_device_layer *layer)
......
...@@ -223,3 +223,9 @@ interface IDXGIOutput3 : IDXGIOutput2 ...@@ -223,3 +223,9 @@ interface IDXGIOutput3 : IDXGIOutput2
[out] UINT *flags [out] UINT *flags
); );
} }
const UINT DXGI_CREATE_FACTORY_DEBUG = 0x1;
[local] HRESULT __stdcall CreateDXGIFactory2(UINT flags, REFIID iid, void **factory);
[local] HRESULT __stdcall DXGIGetDebugInterface1(UINT flags, REFIID iid, void **debug);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment