DkmGPUComputeKernel.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
DkmGPUComputeKernel is called by a debug monitor to create a new DkmGPUComputeKernel instance. DkmGPUComputeKernel objects for GPU compute kernels are created by the base debug monitor.
Location constraint: API must be called from a Monitor component (component level < 100,000).
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);
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
Parameters
- DispatchId
- Int32
[In] The GPU dispatch id for this kernel object.
- GPUDevice
- Int64
[In] The GPU device this compute kernel runs on.
- GPUShader
- Int64
[In] A compute kernel is a running instance of this GPU shader.
- GPUShaderDispatch
- Int64
[In] The handle of the executing GPU shader corresponding to this compute kernel.
- GroupDimensions
- ReadOnlyCollection<UInt32>
[In] Thread group dimensions in a compute kernel.
- NumberOfGroups
- Int64
[In] Number of thread groups in a compute kernel.
- ThreadDimensions
- ReadOnlyCollection<UInt32>
[In] Thread dimensions in a compute kernel.
- NumberOfThreads
- Int32
[In] Number of compute threads in a thread group of compute kernel.
- Process
- DkmProcess
[In] DkmProcess represents a target process which is being debugged. The debugger debugs processes, so this is the basic unit of debugging. A DkmProcess can represent a system process or a virtual process such as minidumps.
- DataItem
- DkmDataItem
[In,Optional] Data object to add to the new DkmGPUComputeKernel instance. Pass 'null' in the case that the caller doesn't need to add a data item.
Returns
[Out] Result of this method call.