Пример #1
0
 public void GLUnmapBufferObject(UInt32 bufferId)
 {
     CudaUtil.Call(CudaMem.cuGLUnmapBufferObject(bufferId));
     ptr          = DevicePtr2D.Zero;
     widthInBytes = 0;
     height       = 0;
 }
Пример #2
0
 /// <summary>
 /// Removes a mapping to an OpenGL buffer and nullifies this buffer's pointer.
 /// </summary>
 /// <param name="bufferId">The unsigned integer name of the OpenGL buffer</param>
 public void GLUnmapBufferObject(UInt32 bufferId)
 {
     CudaUtil.Call(CudaMem.cuGLUnmapBufferObject(bufferId));
     ptr.ptr     = 0;
     sizeInBytes = 0;
 }