Exemplo n.º 1
0
 public int GetFullscreenDesc(ref DXGI_SWAP_CHAIN_FULLSCREEN_DESC pDesc)
 {
     if (m_GetFullscreenDescFunc == null)
     {
         var fp = GetFunctionPointer(19);
         m_GetFullscreenDescFunc = (GetFullscreenDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetFullscreenDescFunc));
     }
     return(m_GetFullscreenDescFunc(m_ptr, ref pDesc));
 }
Exemplo n.º 2
0
 public int CreateSwapChainForHwnd(IntPtr pDevice, HWND hWnd, ref DXGI_SWAP_CHAIN_DESC1 pDesc, ref DXGI_SWAP_CHAIN_FULLSCREEN_DESC pFullscreenDesc, IntPtr pRestrictToOutput, ref IntPtr ppSwapChain)
 {
     if (m_CreateSwapChainForHwndFunc == null)
     {
         var fp = GetFunctionPointer(15);
         m_CreateSwapChainForHwndFunc = (CreateSwapChainForHwndFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSwapChainForHwndFunc));
     }
     return(m_CreateSwapChainForHwndFunc(m_ptr, pDevice, hWnd, ref pDesc, ref pFullscreenDesc, pRestrictToOutput, ref ppSwapChain));
 }