예제 #1
0
 private void dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             Memory?.Unmap();
             Handle?.DestroyBuffer(null);
             Memory?.Free();
         }
     }
     IsDisposed = true;
 }
예제 #2
0
 protected internal override void Destroy()
 {
     Handle?.DestroyBuffer(null);
     Memory?.Free();
 }
예제 #3
0
파일: HostBuffer.cs 프로젝트: LibVega/Vega
 protected internal override void Destroy()
 {
     Memory.Unmap();
     Buffer.DestroyBuffer(null);
     Memory.Free();
 }