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.
CreateDirect3D11SurfaceFromDXGISurface function
Creates an instance of IDirect3DSurface from an IDXGISurface.
Syntax
HRESULT WINAPI CreateDirect3D11SurfaceFromDXGISurface( _In_ IDXGISurface *dxgiSurface, _Out_ IInspectable **graphicsSurface );
Parameters
- dxgiSurface [in]
-
The IDXGISurface to create the IDirect3D11Surface from.
- graphicsSurface [out]
-
An IDirect3DSurface instance that wraps the IDXGISurface.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If you are using C++/CX you should call CreateDirect3DSurface instead of CreateDirect3D11SurfaceFromDXGISurface. If you are using WRL then CreateDirect3D11SurfaceFromDXGISurface can used as shown in the example below:
Examples
The following is an example of how CreateDirect3D11SurfaceFromDXGISurface is used.
using namespace Microsoft::WRL; ComPtr<ABI::Windows::Graphics::DirectX::Direct3D11::IDirect3DSurface> surface; ComPtr<IInspectable> inspectableSurface; If (SUCCEEDED(CreateDirect3D11SurfaceFromDXGISurface(dxgiSurface, &inspectableSurface)) { hr = inspectableSurface.As(&surface); }
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
Show: