Exemplo n.º 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));
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 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));
 }