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