DXGKARG_CREATEDEVICE structure
DXGKARG_CREATEDEVICE 描述了一个Context Device.
Syntax
typedef struct _DXGKARG_CREATEDEVICE {
HANDLE hDevice;
union {
DXGK_CREATEDEVICEFLAGS Flags;
DXGK_DEVICEINFO *pInfo;
};
ULONG Pasid;
HANDLE hKmdProcess;
} DXGKARG_CREATEDEVICE;
Members
hDevice
代表Dxgk中的一个graphics context device,从DxgkDdiCreateDevice函数中传入,当想要调用Dxgk时,有时会用该句柄操作和Device相关的操作。
驱动会产生唯一的一个句柄并且传回给DXGK,DXGK之后会在需要操作该设备的时候使用这个句柄。
Flags
DXGK_CREATEDEVICEFLAGS 指定了该如果创建该设备,例如是创建SystenDevice还是GDI device
pInfo
DXGK_DEVICEINFO包含了DXGK在创建这个Device需要知道的信息。例如DMA Buffer大小,DMAbuffer所在的段标识符等
Pasid
用于VM, The owner process PASID for a support vector machine GPU.
Supported starting with Windows 10.
hKmdProcess
驱动中关联的进程对象句柄,也是用于VN.
Supported starting with Windows 10.
Requirements
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Header | d3dkmddi.h (include D3dkmddi.h) |