Пример #1
0
        public virtual void GetDesc(
            out D3D10_SAMPLER_DESC pDesc
            )
        {
            var fp = GetFunctionPointer(7);

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

            m_GetDescFunc(m_ptr, out pDesc);
        }
        public virtual int GetBackingStore(
            uint Index,
            out D3D10_SAMPLER_DESC pSamplerDesc
            )
        {
            var fp = GetFunctionPointer(26);

            if (m_GetBackingStoreFunc == null)
            {
                m_GetBackingStoreFunc = (GetBackingStoreFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetBackingStoreFunc));
            }

            return(m_GetBackingStoreFunc(m_ptr, Index, out pSamplerDesc));
        }