ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Direct3D11 Namespace / Resource Class / FromSwapChain<T> Method
The type of the buffer.
The swap chain to get the buffer from.
The index of the desired buffer.

In This Topic
    FromSwapChain<T> Method (Resource)
    In This Topic
    Gets a swap chain back buffer.
    Syntax
    'Declaration
     
    Public Shared Function FromSwapChain(Of T As Resource)( _
       ByVal swapChain As SwapChain, _
       ByVal index As System.Integer _
    ) As T
    public static T FromSwapChain<T>( 
       SwapChain swapChain,
       System.int index
    )
    where T: Resource

    Parameters

    swapChain
    The swap chain to get the buffer from.
    index
    The index of the desired buffer.

    Type Parameters

    T
    The type of the buffer.

    Return Value

    The buffer interface, or null on failure.
    See Also