interop::CreateDirect3DDevice function (windows.graphics.directx.direct3d11.interop.h)
Creates an instance of IDirect3DDevice from an IDXGIDevice.
C++
IDirect3DDevice ^ CreateDirect3DDevice(
[in] IDXGIDevice *dxgiDevice
);
[in] dxgiDevice
Type: IDXGIDevice*
The IDXGIDevice to create the Direct3DDevice from.
Type: IDirect3DDevice^
Returns the created IDirect3DDevice instance.
While we recommend C++/WinRT, if you're using C++/CX, then you should use this function. Otherwise, you should use the CreateDirect3D11DeviceFromDXGIDevice function instead.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | windows.graphics.directx.direct3d11.interop.h |
Library | D3D11.lib |
DLL | D3D11.dll |