Esempio n. 1
0
 public int CreateBlendState1(ref D3D10_BLEND_DESC1 pBlendStateDesc, ref IntPtr ppBlendState)
 {
     if (m_CreateBlendState1Func == null)
     {
         var fp = GetFunctionPointer(99);
         m_CreateBlendState1Func = (CreateBlendState1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateBlendState1Func));
     }
     return(m_CreateBlendState1Func(m_ptr, ref pBlendStateDesc, ref ppBlendState));
 }
Esempio n. 2
0
 public void GetDesc1(ref D3D10_BLEND_DESC1 pDesc)
 {
     if (m_GetDesc1Func == null)
     {
         var fp = GetFunctionPointer(8);
         m_GetDesc1Func = (GetDesc1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDesc1Func));
     }
     m_GetDesc1Func(m_ptr, ref pDesc);
 }