Exemplo n.º 1
0
 public int CheckCounter(ref D3D11_COUNTER_DESC pDesc, ref D3D11_COUNTER_TYPE pType, ref uint pActiveCounters, ref sbyte szName, ref uint pNameLength, ref sbyte szUnits, ref uint pUnitsLength, ref sbyte szDescription, ref uint pDescriptionLength)
 {
     if (m_CheckCounterFunc == null)
     {
         var fp = GetFunctionPointer(32);
         m_CheckCounterFunc = (CheckCounterFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CheckCounterFunc));
     }
     return(m_CheckCounterFunc(m_ptr, ref pDesc, ref pType, ref pActiveCounters, ref szName, ref pNameLength, ref szUnits, ref pUnitsLength, ref szDescription, ref pDescriptionLength));
 }
Exemplo n.º 2
0
 public void GetDesc(ref D3D11_COUNTER_DESC pDesc)
 {
     if (m_GetDescFunc == null)
     {
         var fp = GetFunctionPointer(8);
         m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
     }
     m_GetDescFunc(m_ptr, ref pDesc);
 }
Exemplo n.º 3
0
 public int CreateCounter(ref D3D11_COUNTER_DESC pCounterDesc, ref IntPtr ppCounter)
 {
     if (m_CreateCounterFunc == null)
     {
         var fp = GetFunctionPointer(26);
         m_CreateCounterFunc = (CreateCounterFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateCounterFunc));
     }
     return(m_CreateCounterFunc(m_ptr, ref pCounterDesc, ref ppCounter));
 }