[]
        
(Showing Draft Content)

C1.Util.DX.DXGI.Surface.FromSwapChain

FromSwapChain Method

FromSwapChain(SwapChain, int)

Gets a swap chain back buffer.

Declaration
public static Surface FromSwapChain(SwapChain swapChain, int index)
Parameters
Type Name Description
SwapChain swapChain

The swap chain to get the buffer from.

int index

The index of the desired buffer.

Returns
Type Description
Surface

The buffer interface, or null on failure.