IDXGIFactoryPartner interface
An IDXGIFactoryPartner interface includes methods to create a newer version swap chain with more features than IDXGISwapChain.
Members
The IDXGIFactoryPartner interface inherits from IDXGIObject. IDXGIFactoryPartner also has these types of members:
- Methods
Methods
The IDXGIFactoryPartner interface has these methods.
| Method | Description |
|---|---|
| CreateDecodeSwapChainForCompositionSurface | Creates a swap chain that is associated with the composition surface for the swap chain and that is used to decode info on the surface. |
| CreateSwapChainForCompositionSurface | Creates a swap chain that is associated with the composition surface for the swap chain. |
Remarks
To create a Microsoft DirectX Graphics Infrastructure (DXGI) partner factory interface, pass IDXGIFactoryPartner into either the CreateDXGIFactory or CreateDXGIFactory1 function or call QueryInterface from a factory object that either CreateDXGIFactory or CreateDXGIFactory1 returns.
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, IDXGIDevice1, IDXGIDevice2, or IDXGIDevice3 interface from the Direct3D device and then use the IDXGIObject::GetParent method to locate the factory. The following code shows how.
IDXGIDevice2 * pDXGIDevice;
hr = g_pd3dDevice->QueryInterface(__uuidof(IDXGIDevice2), (void **)&pDXGIDevice);
IDXGIAdapter * pDXGIAdapter;
hr = pDXGIDevice->GetParent(__uuidof(IDXGIAdapter), (void **)&pDXGIAdapter);
IDXGIFactoryPartner * pIDXGIFactory;
pDXGIAdapter->GetParent(__uuidof(IDXGIFactoryPartner), (void **)&pIDXGIFactory);
Requirements
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
Header |
DXGIPartner.h |
Library |
Dxgi.lib |
Send comments about this topic to Microsoft
Build date: 8/14/2013