[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.Resource.FromSwapChain

FromSwapChain Method

FromSwapChain<T>(SwapChain, int)

Gets a swap chain back buffer.

Declaration
public static T FromSwapChain<T>(SwapChain swapChain, int index) where T : Resource
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
T

The buffer interface, or null on failure.

Type Parameters
Name Description
T

The type of the buffer.