public void GetDesc(ref D3D11_RASTERIZER_DESC pDesc) { if (m_GetDescFunc == null) { var fp = GetFunctionPointer(7); m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc)); } m_GetDescFunc(m_ptr, ref pDesc); }
public int CreateRasterizerState(ref D3D11_RASTERIZER_DESC pRasterizerDesc, ref IntPtr ppRasterizerState) { if (m_CreateRasterizerStateFunc == null) { var fp = GetFunctionPointer(22); m_CreateRasterizerStateFunc = (CreateRasterizerStateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateRasterizerStateFunc)); } return(m_CreateRasterizerStateFunc(m_ptr, ref pRasterizerDesc, ref ppRasterizerState)); }