DXGKDDI_CREATECONTEXT callback function

DXGKDDI_CREATECONTEXT callback function

该DDI创建了GPU的context。

Syntax

DXGKDDI_CREATECONTEXT DxgkddiCreatecontext;

NTSTATUS DxgkddiCreatecontext(
  IN_CONST_HANDLE hDevice,
  INOUT_PDXGKARG_CREATECONTEXT pCreateContext
)
{...}

Parameters

hDevice

[in] 创建的新的context所在graphics context device句柄。由之前调用的KMD的DxgkDdiCreateDevice提供该句柄给DXGK,通过参数DXGKARG_CREATEDEVICE成员hDevice 传递。

pCreateContext

[in/out] 指向DXGKARG_CREATECONTEXT的指针,其包含了创建的context的信息。

Return Value

DxgkDdiCreateContext returns one of the following values:

Return codeDescription
STATUS_SUCCESSDxgkDdiCreateContext successfully created the context.
STATUS_NO_MEMORYDxgkDdiCreateContext could not allocate memory that was required for it to complete.
STATUS_GRAPHICS_DRIVER_MISMATCHThe display miniport driver is not compatible with the user-mode display driver that initiated the call to DxgkDdiCreateContext.

Remarks

驱动使用GPU context来保存渲染的一系列状态。

单个进程能够在一个deivce上创建多个context。

驱动必须支持任意数量的context,只有在system memory 被耗尽的情况下才不能成功的创建context。

通常,每个context能够引用拥有整个context的device创建的任何资源。

DxgkDdiCreateContext should be made pageable.

Requirements

  
Minimum supported clientAvailable in Windows Vista and later versions of the Windows operating systems.
Target PlatformDesktop
Headerd3dkmddi.h
IRQLPASSIVE_LEVEL
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值