示例#1
0
        public virtual int GetTextureBuffer(
            out ID3D10ShaderResourceView ppTextureBuffer
            )
        {
            var fp = GetFunctionPointer(28);

            if (m_GetTextureBufferFunc == null)
            {
                m_GetTextureBufferFunc = (GetTextureBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetTextureBufferFunc));
            }
            ppTextureBuffer = new ID3D10ShaderResourceView();
            return(m_GetTextureBufferFunc(m_ptr, out ppTextureBuffer.PtrForNew));
        }
示例#2
0
        public virtual int SetTextureBuffer(
            ID3D10ShaderResourceView pTextureBuffer
            )
        {
            var fp = GetFunctionPointer(27);

            if (m_SetTextureBufferFunc == null)
            {
                m_SetTextureBufferFunc = (SetTextureBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetTextureBufferFunc));
            }

            return(m_SetTextureBufferFunc(m_ptr, pTextureBuffer != null ? pTextureBuffer.Ptr : IntPtr.Zero));
        }
示例#3
0
        public virtual int GetResource(
            out ID3D10ShaderResourceView ppResource
            )
        {
            var fp = GetFunctionPointer(26);

            if (m_GetResourceFunc == null)
            {
                m_GetResourceFunc = (GetResourceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetResourceFunc));
            }
            ppResource = new ID3D10ShaderResourceView();
            return(m_GetResourceFunc(m_ptr, out ppResource.PtrForNew));
        }
示例#4
0
        public virtual int SetResource(
            ID3D10ShaderResourceView pResource
            )
        {
            var fp = GetFunctionPointer(25);

            if (m_SetResourceFunc == null)
            {
                m_SetResourceFunc = (SetResourceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetResourceFunc));
            }

            return(m_SetResourceFunc(m_ptr, pResource != null ? pResource.Ptr : IntPtr.Zero));
        }
示例#5
0
        public virtual int GetResourceArray(
            out ID3D10ShaderResourceView ppResources,
            uint Offset,
            uint Count
            )
        {
            var fp = GetFunctionPointer(28);

            if (m_GetResourceArrayFunc == null)
            {
                m_GetResourceArrayFunc = (GetResourceArrayFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetResourceArrayFunc));
            }
            ppResources = new ID3D10ShaderResourceView();
            return(m_GetResourceArrayFunc(m_ptr, out ppResources.PtrForNew, Offset, Count));
        }