Files
mql5-skills/skills/mql5/references/docs/29-opencl/1032-opencl-clsetkernelargmemlocal.md
T
2026-06-23 21:47:51 +08:00

31 lines
744 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CLSetKernelArgMemLocal
Sets the local buffer as an argument of the kernel function.
```
bool  CLSetKernelArgMemLocal(
   int    kernel,           // handle to a kernel of an OpenCL program
   uint   arg_index,        // number of the OpenCL function argument
   ulong  local_mem_size    // buffer size
   );
```
Parameters
kernel
[in]  Handle to a kernel of the OpenCL program.
arg_index
[in]  The number of the function argument, numbering starts with zero.
local_mem_size
[in]  Buffer size in bytes.
Return Value
Returns true if successful, otherwise returns false. For information about the error, use the [GetLastError()](/en/docs/check/getlasterror) function.