Example #1
0
 public int FindClosestMatchingMode1(ref DXGI_MODE_DESC1 pModeToMatch, ref DXGI_MODE_DESC1 pClosestMatch, IntPtr pConcernedDevice)
 {
     if (m_FindClosestMatchingMode1Func == null)
     {
         var fp = GetFunctionPointer(20);
         m_FindClosestMatchingMode1Func = (FindClosestMatchingMode1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(FindClosestMatchingMode1Func));
     }
     return(m_FindClosestMatchingMode1Func(m_ptr, ref pModeToMatch, ref pClosestMatch, pConcernedDevice));
 }
Example #2
0
 public int GetDisplayModeList1(DXGI_FORMAT EnumFormat, uint Flags, ref uint pNumModes, ref DXGI_MODE_DESC1 pDesc)
 {
     if (m_GetDisplayModeList1Func == null)
     {
         var fp = GetFunctionPointer(19);
         m_GetDisplayModeList1Func = (GetDisplayModeList1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDisplayModeList1Func));
     }
     return(m_GetDisplayModeList1Func(m_ptr, EnumFormat, Flags, ref pNumModes, ref pDesc));
 }