1
0
mirror of https://github.com/fumiama/gozel.git synced 2026-06-05 00:10:24 +08:00

feat(ze): add API lst.AppendLaunchKernelWithArguments

This commit is contained in:
源文雨
2026-03-28 13:19:23 +08:00
parent 4164691757
commit e25a6fa976

View File

@@ -69,6 +69,16 @@ func (h CommandListHandle) AppendLaunchKernel(
return err
}
// AppendLaunchKernel appends a kernel launch command to the command list with args.
func (h CommandListHandle) AppendLaunchKernelWithArguments(
hCommandList gozel.ZeCommandListHandle, hKernel gozel.ZeKernelHandle, groupCounts *gozel.ZeGroupCount,
groupSizes *gozel.ZeGroupSize, pArguments *unsafe.Pointer,
) error {
_, err := gozel.ZeCommandListAppendLaunchKernelWithArguments(
gozel.ZeCommandListHandle(h), gozel.ZeKernelHandle(hKernel), groupCounts, groupSizes, pArguments, nil, 0, 0, nil)
return err
}
// Close closes the command list, making it ready for execution.
func (h CommandListHandle) Close() error {
_, err := gozel.ZeCommandListClose(gozel.ZeCommandListHandle(h))