Skip to content

Latest commit

 

History

History
86 lines (66 loc) · 3.91 KB

nn-dxgi1_2-idxgiresource1.md

File metadata and controls

86 lines (66 loc) · 3.91 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:dxgi1_2.IDXGIResource1
IDXGIResource1 (dxgi1_2.h)
An IDXGIResource1 interface extends the IDXGIResource interface by adding support for creating a subresource surface object and for creating a handle to a shared resource.
IDXGIResource1
IDXGIResource1 interface [DXGI]
IDXGIResource1 interface [DXGI]
described
direct3ddxgi.idxgiresource1
dxgi1_2/IDXGIResource1
direct3ddxgi\idxgiresource1.htm
direct3ddxgi
0ABA9B8D-BEA4-4455-A312-7CFEDEBBF19A
12/05/2018
IDXGIResource1, IDXGIResource1 interface [DXGI], IDXGIResource1 interface [DXGI],described, direct3ddxgi.idxgiresource1, dxgi1_2/IDXGIResource1
dxgi1_2.h
Windows
Windows 8 and Platform Update for Windows 7 [desktop apps \| UWP apps]
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps \| UWP apps]
Dxgi.lib
Windows
19H1
IDXGIResource1
dxgi1_2/IDXGIResource1
c++
APIRef
kbSyntax
COM
Dxgi.lib
Dxgi.dll
IDXGIResource1

IDXGIResource1 interface

-description

An IDXGIResource1 interface extends the IDXGIResource interface by adding support for creating a subresource surface object and for creating a handle to a shared resource.

-inheritance

The IDXGIResource1 interface inherits from IDXGIResource. IDXGIResource1 also has these types of members:

-remarks

To determine the type of memory a resource is currently located in, use IDXGIDevice::QueryResourceResidency. To share resources between processes, use ID3D11Device1::OpenSharedResource1. For information about how to share resources between multiple Windows graphics APIs, including Direct3D 11, Direct2D, Direct3D 10, and Direct3D 9Ex, see Surface Sharing Between Windows Graphics APIs.

You can retrieve the IDXGIResource1 interface from any video memory resource that you create from a Direct3D 10 and later function. Any Direct3D object that supports ID3D10Resource or ID3D11Resource also supports IDXGIResource1. For example, the Direct3D 2D texture object that you create from ID3D11Device::CreateTexture2D supports IDXGIResource1. You can call QueryInterface on the 2D texture object (ID3D11Texture2D) to retrieve the IDXGIResource1 interface. For example, to retrieve the IDXGIResource1 interface from the 2D texture object, use the following code.

IDXGIResource1 * pDXGIResource;
hr = g_pd3dTexture2D->QueryInterface(__uuidof(IDXGIResource1), (void **)&pDXGIResource);

Windows Phone 8: This API is supported.

-see-also

DXGI Interfaces

IDXGIResource