IDXGIFactory interface (dxgi.h)
An IDXGIFactory interface implements methods for generating DXGI objects (which handle full screen transitions).
The IDXGIFactory interface inherits from IDXGIObject. IDXGIFactory also has these types of members:
The IDXGIFactory interface has these methods.
Create an adapter interface that represents a software adapter.
Creates a swap chain.
Enumerates the adapters (video cards).
Get the window through which the user controls the transition to and from full screen.
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).
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.