Exemplo n.º 1
0
 public int CreateSurface(ref DXGI_SURFACE_DESC pDesc, uint NumSurfaces, uint Usage, ref DXGI_SHARED_RESOURCE pSharedResource, ref IntPtr ppSurface)
 {
     if (m_CreateSurfaceFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_CreateSurfaceFunc = (CreateSurfaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSurfaceFunc));
     }
     return(m_CreateSurfaceFunc(m_ptr, ref pDesc, NumSurfaces, Usage, ref pSharedResource, ref ppSurface));
 }
Exemplo n.º 2
0
 public int GetDesc(ref DXGI_SURFACE_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     return(m_GetDescFunc(m_ptr, ref pDesc));
 }