public void SetArg(int argIndex, UShort16 c) { ErrorCode result; result = OpenCL.SetKernelArg(KernelID, (uint)argIndex, (IntPtr)sizeof(UShort16), &c); if (result != ErrorCode.SUCCESS) { throw new OpenCLException("SetArg failed with error code " + result, result); } }
public void SetArg(int argIndex, UShort16 c) { ErrorCode result; result = OpenCL.SetKernelArg(KernelID, (uint)argIndex, (IntPtr)sizeof(UShort16), &c); if (result != ErrorCode.SUCCESS) throw new OpenCLException("SetArg failed with error code " + result, result); }