IDXGIFactory1 interface

Expand
2 out of 5 rated this helpful - Rate this topic

IDXGIFactory1 interface

Applies to: desktop apps | Metro style apps

The IDXGIFactory1 interface implements methods for generating DXGI objects.

Members

The IDXGIFactory1 interface inherits from IDXGIFactory. IDXGIFactory1 also has these types of members:

Methods

The IDXGIFactory1 interface has these methods.

MethodDescription
EnumAdapters1

Enumerates both adapters (video cards) with or without outputs.

IsCurrent

Informs an application of the possible need to re-enumerate adapters.

 

Remarks

This interface is not supported by DXGI 1.0, which shipped in Windows Vista and Windows Server 2008. DXGI 1.1 support is required, which is available on Windows 7, Windows Server 2008 R2, and as an update to Windows Vista with Service Pack 2 (SP2) (KB 971644) and Windows Server 2008 (KB 971512).

To create a factory, call the CreateDXGIFactory1 function.

Because you can create a Direct3D device without creating a swap chain, you might need to retrieve the factory that is used to create the device in order to create a swap chain. You can request the IDXGIDevice or IDXGIDevice1 interface from the Direct3D device and then use the IDXGIObject::GetParent method to locate the factory. The following code shows how.


IDXGIDevice1 * pDXGIDevice;
hr = g_pd3dDevice->QueryInterface(__uuidof(IDXGIDevice1), (void **)&pDXGIDevice);
      
IDXGIAdapter * pDXGIAdapter;
hr = pDXGIDevice->GetParent(__uuidof(IDXGIAdapter), (void **)&pDXGIAdapter);

IDXGIFactory1 * pIDXGIFactory;
pDXGIAdapter->GetParent(__uuidof(IDXGIFactory1), (void **)&pIDXGIFactory);


Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

DXGI.h

Library

DXGI.lib

See also

DXGI Interfaces

 

 

Send comments about this topic to Microsoft

Build date: 5/5/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD
bf3.exe - Entry Point Not Found
the procedure entry point CreateDXGIFactory1 vould not be located in the dynamic link library dxgi.dll