From e25a6fa976633dfb0b18d00edf1c61b5bd823307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 28 Mar 2026 13:19:23 +0800 Subject: [PATCH] feat(ze): add API lst.AppendLaunchKernelWithArguments --- ze/command.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ze/command.go b/ze/command.go index cfc95e3..e0233da 100644 --- a/ze/command.go +++ b/ze/command.go @@ -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))