Пример #1
0
 public int FindClosestMatchingMode(ref DXGI_MODE_DESC pModeToMatch, ref DXGI_MODE_DESC pClosestMatch, IntPtr pConcernedDevice)
 {
     if (m_FindClosestMatchingModeFunc == null)
     {
         var fp = GetFunctionPointer(9);
         m_FindClosestMatchingModeFunc = (FindClosestMatchingModeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(FindClosestMatchingModeFunc));
     }
     return(m_FindClosestMatchingModeFunc(m_ptr, ref pModeToMatch, ref pClosestMatch, pConcernedDevice));
 }
Пример #2
0
 public int ResizeTarget(ref DXGI_MODE_DESC pNewTargetParameters)
 {
     if (m_ResizeTargetFunc == null)
     {
         var fp = GetFunctionPointer(14);
         m_ResizeTargetFunc = (ResizeTargetFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ResizeTargetFunc));
     }
     return(m_ResizeTargetFunc(m_ptr, ref pNewTargetParameters));
 }
Пример #3
0
 public int GetDisplayModeList(DXGI_FORMAT EnumFormat, uint Flags, ref uint pNumModes, ref DXGI_MODE_DESC pDesc)
 {
     if (m_GetDisplayModeListFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_GetDisplayModeListFunc = (GetDisplayModeListFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDisplayModeListFunc));
     }
     return(m_GetDisplayModeListFunc(m_ptr, EnumFormat, Flags, ref pNumModes, ref pDesc));
 }