D3DDDI_DRIVERESCAPE_TRANSLATERESOURCEHANDLE 结构 (d3dukmdt.h)

D3DDDI_DRIVERESCAPE_TRANSLATERESOURCEHANDLE结构用于将资源句柄转换为相应的主机句柄。

语法

typedef struct _D3DDDI_DRIVERESCAPE_TRANSLATERESOURCEHANDLE {
  D3DDDI_DRIVERESCAPETYPE EscapeType;
  D3DKMT_HANDLE           hResource;
} D3DDDI_DRIVERESCAPE_TRANSLATERESOURCEHANDLE;

成员

EscapeType

D3DDDI_DRIVERESCAPETYPE。 必须设置为 D3DDDI_DRIVERESCAPETYPE_TRANSLATERESOURCEHANDLE

hResource

[in/out]输入时为从 DXGKDDI_CREATEALLOCATION 返回的 DirectX 图形资源的句柄。

返回时,可发送到内核模式驱动程序并在DXGKCB_ACQUIREHANDLEDATA、DXGKCB_RELEASEHANDLEDATADXGKCB_GETHANDLEDATA和DXGKCB_GETHANDLEPARENT等函数中使用的句

注解

D3DDDI_DRIVERESCAPE_TRANSLATERESOURCEHANDLE 结构与已知的转义类型一起使用D3DDDI_DRIVERESCAPETYPE_TRANSLATERESOURCEHANDLE

要求

要求
最低受支持的客户端 Windows 10 版本 1809
标头 d3dukmdt.h

另请参阅

D3DDDI_DRIVERESCAPETYPE

DXGKARG_ESCAPE

DXGKDDI_ESCAPE