FromSwapChain<T> Method (Resource)
In This Topic
Gets a swap chain back buffer.
Syntax
'Declaration
Public Shared Function FromSwapChain(Of As Resource)( _
ByVal As SwapChain, _
ByVal As System.Integer _
) As
public static FromSwapChain<>(
SwapChain ,
System.int
)
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