Beispiel #1
0
 public int Map(ref DXGI_MAPPED_RECT pLockedRect, uint MapFlags)
 {
     if (m_MapFunc == null)
     {
         var fp = GetFunctionPointer(9);
         m_MapFunc = (MapFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapFunc));
     }
     return(m_MapFunc(m_ptr, ref pLockedRect, MapFlags));
 }
 public int MapDesktopSurface(ref DXGI_MAPPED_RECT pLockedRect)
 {
     if (m_MapDesktopSurfaceFunc == null)
     {
         var fp = GetFunctionPointer(12);
         m_MapDesktopSurfaceFunc = (MapDesktopSurfaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(MapDesktopSurfaceFunc));
     }
     return(m_MapDesktopSurfaceFunc(m_ptr, ref pLockedRect));
 }