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

598 B

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.