Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 2.77 KB

nn-dxgi-idxgifactory.md

File metadata and controls

92 lines (70 loc) · 2.77 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NN:dxgi.IDXGIFactory
IDXGIFactory (dxgi.h)
An IDXGIFactory interface implements methods for generating DXGI objects (which handle full screen transitions).
IDXGIFactory
IDXGIFactory interface [DXGI]
IDXGIFactory interface [DXGI]
described
b1276108-6fb6-9c57-75ed-b22303809d9e
direct3ddxgi.idxgifactory
dxgi/IDXGIFactory
direct3ddxgi\idxgifactory.htm
direct3ddxgi
VS|directx_sdk|~\idxgifactory.htm
12/05/2018
IDXGIFactory, IDXGIFactory interface [DXGI], IDXGIFactory interface [DXGI],described, b1276108-6fb6-9c57-75ed-b22303809d9e, direct3ddxgi.idxgifactory, dxgi/IDXGIFactory
dxgi.h
Windows
DXGI.lib
Windows
19H1
IDXGIFactory
dxgi/IDXGIFactory
c++
APIRef
kbSyntax
COM
DXGI.lib
DXGI.dll
IDXGIFactory

IDXGIFactory interface

-description

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:

-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.

-see-also

DXGI Interfaces

IDXGIObject