Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFCreateDXGIDeviceManager function

Creates an instance of the Microsoft DirectX Graphics Infrastructure (DXGI) Device Manager.

Syntax


HRESULT MFCreateDXGIDeviceManager(
  _Out_ UINT                 *pResetToken,
  _Out_ IMFDXGIDeviceManager **ppDXVAManager
);

Parameters

pResetToken [out]

Receives a token that identifies this instance of the DXGI Device Manager. Use this token when calling IMFDXGIDeviceManager::ResetDevice.

ppDXVAManager [out]

Receives a pointer to the IMFDXGIDeviceManager interface. The caller must release the interface.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

When you create an IMFDXGIDeviceManager with MFCreateDXGIDeviceManager, a Microsoft Direct3D 11 device is not associated with the device manager. To associate a Direct3D 11 device with the device manager, call IMFDXGIDeviceManager::ResetDevice, passing in the pointer to the Direct3D 11 device. To create a Direct3D 11 device, call D3D11CreateDevice. The device should be created with the D3D11_CREATE_DEVICE_VIDEO_SUPPORT device creation flag which is defined in the D3D11_CREATE_DEVICE_FLAG enumeration.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Show:
© 2016 Microsoft