Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1499-standardlibrary-copencl-copenclsetargumentbuffer.md
T
2026-06-23 21:47:51 +08:00

31 lines
598 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.
# SetArgumentBuffer
Sets an OpenCL buffer as a parameter of the OpenCL function at the specified index.
```
bool  SetArgumentBuffer(
   const int  kernel_index,     // index of the kernel
   const int  arg_index,        // index of the function argument
   const int  buffer_index      // buffer index
   );
```
Parameters
kernel_index
[in]  Index of the kernel object.
arg_index
[in]  Index of the function argument.
buffer_index
[in]  Index buffer.
Return Value
In case of successful execution, returns true, otherwise - false.