ComponentOne Bitmap for UWP
FromSwapChain<T> Method (Resource)

C1.UWP.DX 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.
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

Reference

Resource Class
Resource Members