示例#1
0
 public void GetDesc(ref D3D11_DEPTH_STENCIL_VIEW_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }
示例#2
0
 public int CreateDepthStencilView(IntPtr pResource, ref D3D11_DEPTH_STENCIL_VIEW_DESC pDesc, ref IntPtr ppDepthStencilView)
 {
     if (m_CreateDepthStencilViewFunc == null)
     {
         var fp = GetFunctionPointer(10);
         m_CreateDepthStencilViewFunc = (CreateDepthStencilViewFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateDepthStencilViewFunc));
     }
     return(m_CreateDepthStencilViewFunc(m_ptr, pResource, ref pDesc, ref ppDepthStencilView));
 }