Exemplo n.º 1
0
        internal PlaneResources(int fd_gpu)
        {
            gpu_fd = fd_gpu;
            handle = drmModeGetPlaneResources(fd_gpu);

            if (handle == null)
            {
                throw new NotSupportedException("[DRI] drmModeGetPlaneResources failed.");
            }
        }
Exemplo n.º 2
0
 protected virtual void Dispose(bool disposing)
 {
     unsafe {
         if (handle != null)
         {
             drmModeFreePlaneResources(handle);
         }
         handle = null;
     }
 }
Exemplo n.º 3
0
 unsafe internal static extern void drmModeFreePlaneResources(drmPlaneRes *ptr);