[]
        
(Showing Draft Content)

C1.Util.DX.DXGI.SwapChain.GetBackBuffer

GetBackBuffer Method

GetBackBuffer<T>(int)

Access one of the swap-chain back buffers.

Declaration
public T GetBackBuffer<T>(int index) where T : ComObject
Parameters
Type Name Description
int index

A zero-based buffer index. If the swap effect is not DXGI_SWAP_EFFECT_SEQUENTIAL, this method only has access to the first buffer; for this case, set the index to zero.

Returns
Type Description
T

Returns a reference to a back-buffer interface.

Type Parameters
Name Description
T

The interface of the surface to resolve from the back buffer