dxgi里面的相对层次关系

来源:互联网 发布:移动网络上h网解决办法 编辑:程序博客网 时间:2024/05/21 07:03

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

 

Diagram of possible parents for DXGI objects

 

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

复制__uuidof(*ppParent)Requirements

Header

DXGI.h

Library

DXGI.libSee Also
IDXGIObject
DXGI Interfaces
原创粉丝点击