Ejemplo n.º 1
0
 public int CreateDepthStencilState(ref D3D11_DEPTH_STENCIL_DESC pDepthStencilDesc, ref IntPtr ppDepthStencilState)
 {
     if (m_CreateDepthStencilStateFunc == null)
     {
         var fp = GetFunctionPointer(21);
         m_CreateDepthStencilStateFunc = (CreateDepthStencilStateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateDepthStencilStateFunc));
     }
     return(m_CreateDepthStencilStateFunc(m_ptr, ref pDepthStencilDesc, ref ppDepthStencilState));
 }
 public void GetDesc(ref D3D11_DEPTH_STENCIL_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(7);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }