Example #1
0
        public virtual int IsEqual(
            ID3D11ShaderReflectionType pType
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_IsEqualFunc == null)
            {
                m_IsEqualFunc = (IsEqualFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(IsEqualFunc));
            }

            return(m_IsEqualFunc(m_ptr, pType != null ? pType.Ptr : IntPtr.Zero));
        }
Example #2
0
        public virtual int ImplementsInterface(
            ID3D11ShaderReflectionType pBase
            )
        {
            var fp = GetFunctionPointer(10);

            if (m_ImplementsInterfaceFunc == null)
            {
                m_ImplementsInterfaceFunc = (ImplementsInterfaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(ImplementsInterfaceFunc));
            }

            return(m_ImplementsInterfaceFunc(m_ptr, pBase != null ? pBase.Ptr : IntPtr.Zero));
        }