Esempio n. 1
0
 public void GetDesc(ref D3D11_BLEND_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(7);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }
Esempio n. 2
0
 public int CreateBlendState(ref D3D11_BLEND_DESC pBlendStateDesc, ref IntPtr ppBlendState)
 {
     if (m_CreateBlendStateFunc == null)
     {
         var fp = GetFunctionPointer(20);
         m_CreateBlendStateFunc = (CreateBlendStateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateBlendStateFunc));
     }
     return(m_CreateBlendStateFunc(m_ptr, ref pBlendStateDesc, ref ppBlendState));
 }