Example #1
0
        /// <summary>	
        /// <p>Get the storage filter at the top of the storage-filter stack.</p>	
        /// </summary>	
        /// <returns>The storage filter at the top of the storage-filter stack.</returns>	
        /// <msdn-id>ff476560</msdn-id>	
        /// <unmanaged>HRESULT ID3D11InfoQueue::GetStorageFilter([In] void* pFilter,[InOut] SIZE_T* pFilterByteLength)</unmanaged>	
        /// <unmanaged-short>ID3D11InfoQueue::GetStorageFilter</unmanaged-short>	
        public unsafe SharpDX.Direct3D11.InfoQueueFilter GetStorageFilter()
        {
            var sizeFilter = PointerSize.Zero;
            GetStorageFilter(IntPtr.Zero, ref sizeFilter);

            if(sizeFilter == 0)
            {
                return null;
            }
            var filter = stackalloc byte[(int)sizeFilter];
            GetStorageFilter((IntPtr)filter, ref sizeFilter);

            var queueNative = new InfoQueueFilter();
            queueNative.__MarshalFrom(ref *(InfoQueueFilter.__Native*)filter);

            return queueNative;
        }
Example #2
0
    public unsafe InfoQueueFilter?GetRetrievalFilter()
    {
        PointerSize sizeFilter = PointerSize.Zero;

        GetRetrievalFilter(IntPtr.Zero, ref sizeFilter);

        if (sizeFilter == 0)
        {
            return(null);
        }

        byte *filter = stackalloc byte[(int)sizeFilter];

        GetRetrievalFilter((IntPtr)filter, ref sizeFilter);

        InfoQueueFilter queueNative = new InfoQueueFilter();

        queueNative.__MarshalFrom(ref *(InfoQueueFilter.__Native *)filter);
        return(queueNative);
    }
Example #3
0
        /// <summary>
        /// <p>Get the retrieval filter at the top of the retrieval-filter stack.</p>
        /// </summary>
        /// <returns>The retrieval filter at the top of the retrieval-filter stack.</returns>
        /// <msdn-id>ff476558</msdn-id>
        /// <unmanaged>HRESULT ID3D11InfoQueue::GetRetrievalFilter([In] void* pFilter,[InOut] SIZE_T* pFilterByteLength)</unmanaged>
        /// <unmanaged-short>ID3D11InfoQueue::GetRetrievalFilter</unmanaged-short>
        public unsafe SharpDX.Direct3D11.InfoQueueFilter GetRetrievalFilter()
        {
            var sizeFilter = PointerSize.Zero;

            GetRetrievalFilter(IntPtr.Zero, ref sizeFilter);

            if (sizeFilter == 0)
            {
                return(null);
            }
            var filter = stackalloc byte[(int)sizeFilter];

            GetRetrievalFilter((IntPtr)filter, ref sizeFilter);

            var queueNative = new InfoQueueFilter();

            queueNative.__MarshalFrom(ref *(InfoQueueFilter.__Native *)filter);

            return(queueNative);
        }
    public unsafe InfoQueueFilter?GetRetrievalFilter(Guid producer)
    {
        var sizeFilter = PointerSize.Zero;

        GetRetrievalFilter(producer, IntPtr.Zero, ref sizeFilter);

        if (sizeFilter == 0)
        {
            return(null);
        }
        var filter = stackalloc byte[(int)sizeFilter];

        GetRetrievalFilter(producer, (IntPtr)filter, ref sizeFilter);

        var queueNative = new InfoQueueFilter();

        queueNative.__MarshalFrom(ref *(InfoQueueFilter.__Native *)filter);

        return(queueNative);
    }