예제 #1
0
파일: Kernel.cs 프로젝트: xgalv/Cryptool2
        public void SetArg(int argIndex, Short3 c)
        {
            ErrorCode result;

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

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