dxgi里面相关对象的层次关系

从 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.

Return Value

Type: HRESULT

Returns one of the following DXGI_ERROR.

Remarks

The following diagram shows the possible parent types for DXGI objects.

 

dxgi里面相关对象的层次关系_第1张图片

Diagram of possible parents for DXGI objects

 dxgi里面相关对象的层次关系_第2张图片

The identifier of the interface an object supports can be obtained like so:

复制__uuidof(*ppParent)Requirements

Header

DXGI.h

Library

DXGI.lib See Also
IDXGIObject
DXGI Interfaces

你可能感兴趣的:(object,interface,平台,Direct3D,Types)