IDXGIFactory interface (dxgi.h)

An IDXGIFactory interface implements methods for generating DXGI objects (which handle full screen transitions).

Inheritance

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

Methods

The IDXGIFactory interface has these methods.

 
IDXGIFactory::CreateSoftwareAdapter

Create an adapter interface that represents a software adapter.
IDXGIFactory::CreateSwapChain

Creates a swap chain.
IDXGIFactory::EnumAdapters

Enumerates the adapters (video cards).
IDXGIFactory::GetWindowAssociation

Get the window through which the user controls the transition to and from full screen.
IDXGIFactory::MakeWindowAssociation

Allows DXGI to monitor an application's message queue for the alt-enter key sequence (which causes the application to switch from windowed to full screen or vice versa).

Remarks

Create a factory by calling CreateDXGIFactory.

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 interface from the Direct3D device and then use the IDXGIObject::GetParent method to locate the factory. The following code shows how.

IDXGIDevice * pDXGIDevice = nullptr;
hr = g_pd3dDevice->QueryInterface(__uuidof(IDXGIDevice), (void **)&pDXGIDevice);

IDXGIAdapter * pDXGIAdapter = nullptr;
hr = pDXGIDevice->GetAdapter( &pDXGIAdapter );

IDXGIFactory * pIDXGIFactory = nullptr;
pDXGIAdapter->GetParent(__uuidof(IDXGIFactory), (void **)&pIDXGIFactory);

Windows Phone 8: This API is supported.

Requirements

Requirement Value
Target Platform Windows
Header dxgi.h

See also

DXGI Interfaces

IDXGIObject