示例#1
0
        /// <summary>
        /// OpenCL 1.1
        /// </summary>
        /// <param name="buffer"></param>
        /// <param name="flags"></param>
        /// <param name="buffer_create_info"></param>
        /// <param name="errcode_ret"></param>
        /// <returns></returns>
        public Mem CreateSubBuffer(Mem buffer, MemFlags flags, BufferRegion buffer_create_info, out ErrorCode errcode_ret)
        {
            IntPtr memID = OpenCL.CreateSubBuffer(buffer.MemID, flags, buffer_create_info, out errcode_ret);

            return(new Mem(buffer.Context, memID));
        }
示例#2
0
 public static IntPtr CreateSubBuffer(IntPtr memobj, MemFlags flags, BufferRegion buffer_create_info, out ErrorCode errcode_ret)
 {
     return OpenCLAPI.clCreateSubBuffer(memobj, (cl_mem_flags)flags, BufferCreateType.REGION, &buffer_create_info, out errcode_ret);
 }
示例#3
0
文件: Mem.cs 项目: ctapang/GPUCyclops
 /// <summary>
 /// OpenCL 1.1
 /// </summary>
 /// <param name="buffer"></param>
 /// <param name="flags"></param>
 /// <param name="buffer_create_info"></param>
 /// <param name="errcode_ret"></param>
 /// <returns></returns>
 public Mem CreateSubBuffer(Mem buffer, MemFlags flags, BufferRegion buffer_create_info, out ErrorCode errcode_ret)
 {
     IntPtr memID = OpenCL.CreateSubBuffer(buffer.MemID, flags, buffer_create_info, out errcode_ret);
     return new Mem(buffer.Context, memID);
 }
示例#4
0
 public static IntPtr CreateSubBuffer(IntPtr memobj, MemFlags flags, BufferRegion buffer_create_info, out ErrorCode errcode_ret)
 {
     return(OpenCLAPI.clCreateSubBuffer(memobj, (cl_mem_flags)flags, BufferCreateType.REGION, &buffer_create_info, out errcode_ret));
 }