DkmGPUComputeKernel.Create 方法

定义

调试监视器调用 DkmGPUComputeKernel 来创建新的 DkmGPUComputeKernel 实例。 用于 GPU 计算内核的 DkmGPUComputeKernel 对象由基本调试监视器创建。

位置约束:必须从监视器组件 (组件级别 100000) 中调用 API < 。

public:
 static Microsoft::VisualStudio::Debugger::GPU::DkmGPUComputeKernel ^ Create(int DispatchId, long GPUDevice, long GPUShader, long GPUShaderDispatch, System::Collections::ObjectModel::ReadOnlyCollection<System::UInt32> ^ GroupDimensions, long NumberOfGroups, System::Collections::ObjectModel::ReadOnlyCollection<System::UInt32> ^ ThreadDimensions, int NumberOfThreads, Microsoft::VisualStudio::Debugger::DkmProcess ^ Process, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.GPU.DkmGPUComputeKernel Create (int DispatchId, long GPUDevice, long GPUShader, long GPUShaderDispatch, System.Collections.ObjectModel.ReadOnlyCollection<uint> GroupDimensions, long NumberOfGroups, System.Collections.ObjectModel.ReadOnlyCollection<uint> ThreadDimensions, int NumberOfThreads, Microsoft.VisualStudio.Debugger.DkmProcess Process, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
static member Create : int * int64 * int64 * int64 * System.Collections.ObjectModel.ReadOnlyCollection<uint32> * int64 * System.Collections.ObjectModel.ReadOnlyCollection<uint32> * int * Microsoft.VisualStudio.Debugger.DkmProcess * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.GPU.DkmGPUComputeKernel
Public Shared Function Create (DispatchId As Integer, GPUDevice As Long, GPUShader As Long, GPUShaderDispatch As Long, GroupDimensions As ReadOnlyCollection(Of UInteger), NumberOfGroups As Long, ThreadDimensions As ReadOnlyCollection(Of UInteger), NumberOfThreads As Integer, Process As DkmProcess, DataItem As DkmDataItem) As DkmGPUComputeKernel

参数

DispatchId
Int32

中此内核对象的 GPU 调度 id。

GPUDevice
Int64

中运行此计算内核的 GPU 设备。

GPUShader
Int64

中计算内核是此 GPU 着色器的正在运行的实例。

GPUShaderDispatch
Int64

中与此计算内核相对应的执行 GPU 着色器的句柄。

GroupDimensions
ReadOnlyCollection<UInt32>

中计算内核中的线程组维度。

NumberOfGroups
Int64

中计算内核中的线程组数。

ThreadDimensions
ReadOnlyCollection<UInt32>

中计算内核中的线程维度。

NumberOfThreads
Int32

中计算内核的线程组中的计算线程数。

Process
DkmProcess

中DkmProcess 表示正在调试的目标进程。 调试器调试进程,因此这是调试的基本单元。 DkmProcess 可以表示系统进程或虚拟进程,如小型转储。

DataItem
DkmDataItem

[In,可选]要添加到新的 DkmGPUComputeKernel 实例的数据对象。 如果调用方不需要添加数据项,则传递 "null"。

返回

DkmGPUComputeKernel

弄此方法调用的结果。

适用于