Beispiel #1
0
        public virtual void GetDesc(
            out D3D11_COUNTER_DESC pDesc
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_GetDescFunc == null)
            {
                m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
            }

            m_GetDescFunc(m_ptr, out pDesc);
        }
Beispiel #2
0
        public virtual int CreateCounter(
            ref D3D11_COUNTER_DESC pCounterDesc,
            out ID3D11Counter ppCounter
            )
        {
            var fp = GetFunctionPointer(26);

            if (m_CreateCounterFunc == null)
            {
                m_CreateCounterFunc = (CreateCounterFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateCounterFunc));
            }
            ppCounter = new ID3D11Counter();
            return(m_CreateCounterFunc(m_ptr, ref pCounterDesc, out ppCounter.PtrForNew));
        }
Beispiel #3
0
        public virtual int CheckCounter(
            ref D3D11_COUNTER_DESC pDesc,
            out D3D11_COUNTER_TYPE pType,
            out uint pActiveCounters,
            out sbyte szName,
            out uint pNameLength,
            out sbyte szUnits,
            out uint pUnitsLength,
            out sbyte szDescription,
            out uint pDescriptionLength
            )
        {
            var fp = GetFunctionPointer(32);

            if (m_CheckCounterFunc == null)
            {
                m_CheckCounterFunc = (CheckCounterFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CheckCounterFunc));
            }

            return(m_CheckCounterFunc(m_ptr, ref pDesc, out pType, out pActiveCounters, out szName, out pNameLength, out szUnits, out pUnitsLength, out szDescription, out pDescriptionLength));
        }