Пример #1
0
 public int CreatePredicate(ref D3D11_QUERY_DESC pPredicateDesc, ref IntPtr ppPredicate)
 {
     if (m_CreatePredicateFunc == null)
     {
         var fp = GetFunctionPointer(25);
         m_CreatePredicateFunc = (CreatePredicateFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreatePredicateFunc));
     }
     return(m_CreatePredicateFunc(m_ptr, ref pPredicateDesc, ref ppPredicate));
 }
Пример #2
0
 public void GetDesc(ref D3D11_QUERY_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }
Пример #3
0
 public int CreateQuery(ref D3D11_QUERY_DESC pQueryDesc, ref IntPtr ppQuery)
 {
     if (m_CreateQueryFunc == null)
     {
         var fp = GetFunctionPointer(24);
         m_CreateQueryFunc = (CreateQueryFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateQueryFunc));
     }
     return(m_CreateQueryFunc(m_ptr, ref pQueryDesc, ref ppQuery));
 }