示例#1
0
文件: CLAPI.cs 项目: karayakar/ILGPU
 public static CLError CreateBuffer(
     IntPtr context,
     CLBufferFlags flags,
     IntPtr size,
     IntPtr hostPointer,
     out IntPtr buffer)
 {
     buffer = NativeMethods.CreateBuffer(
         context,
         flags,
         size,
         hostPointer,
         out CLError errorStatus);
     return(errorStatus);
 }
示例#2
0
 public static extern IntPtr CreateBuffer(
     IntPtr context,
     CLBufferFlags flags,
     IntPtr size,
     IntPtr hostPointer,
     out CLError errorCode);