public virtual int GetDepthStencil(
            out ID3D10DepthStencilView ppResource
            )
        {
            var fp = GetFunctionPointer(26);

            if (m_GetDepthStencilFunc == null)
            {
                m_GetDepthStencilFunc = (GetDepthStencilFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDepthStencilFunc));
            }
            ppResource = new ID3D10DepthStencilView();
            return(m_GetDepthStencilFunc(m_ptr, out ppResource.PtrForNew));
        }
        public virtual int SetDepthStencil(
            ID3D10DepthStencilView pResource
            )
        {
            var fp = GetFunctionPointer(25);

            if (m_SetDepthStencilFunc == null)
            {
                m_SetDepthStencilFunc = (SetDepthStencilFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetDepthStencilFunc));
            }

            return(m_SetDepthStencilFunc(m_ptr, pResource != null ? pResource.Ptr : IntPtr.Zero));
        }
        public virtual int GetDepthStencilArray(
            out ID3D10DepthStencilView ppResources,
            uint Offset,
            uint Count
            )
        {
            var fp = GetFunctionPointer(28);

            if (m_GetDepthStencilArrayFunc == null)
            {
                m_GetDepthStencilArrayFunc = (GetDepthStencilArrayFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDepthStencilArrayFunc));
            }
            ppResources = new ID3D10DepthStencilView();
            return(m_GetDepthStencilArrayFunc(m_ptr, out ppResources.PtrForNew, Offset, Count));
        }