/// <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)); }
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); }
/// <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); }
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)); }