从 Direct3D 10 开始,Direct3D 运行时使用 DXGI(可能为英文网页)进行资源管理。DXGI 运行时层提供了跨进程共享视频内存图面的功能,并且可用作其他基于视频内存的运行时平台的基础。Direct2D 使用 DXGI 与 Direct3D 交互。
一下是dxgi里面相关对象的层次关系
IDXGIObject::GetParent Method
Gets the parent of the object.
SyntaxHRESULT GetParent(
[in] REFIID riid, [out] void **ppParent);Parameters-
riid [in]
-
Type: REFIID
The ID of the requested interface. See remarks.
ppParent [out]
-
Type: void**
The address of a pointer to the parent object.
Type: HRESULT
Returns one of the following DXGI_ERROR.
RemarksThe following diagram shows the possible parent types for DXGI objects.
Diagram of possible parents for DXGI objects
The identifier of the interface an object supports can be obtained like so:
复制__uuidof(*ppParent)RequirementsHeader
DXGI.hLibrary
DXGI.lib See Also