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); }
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)); }