---
UID: NF:dxgi1_4.IDXGISwapChain3.GetCurrentBackBufferIndex
title: IDXGISwapChain3::GetCurrentBackBufferIndex (dxgi1_4.h)
description: Gets the index of the swap chain's current back buffer.
old-location: direct3ddxgi\idxgiswapchain3_getcurrentbackbufferindex.htm
tech.root: direct3ddxgi
ms.assetid: C19D56AC-4094-4D4A-B992-8FE8348A7DE2
ms.date: 12/05/2018
ms.keywords: GetCurrentBackBufferIndex, GetCurrentBackBufferIndex method [DXGI], GetCurrentBackBufferIndex method [DXGI],IDXGISwapChain3 interface, IDXGISwapChain3 interface [DXGI],GetCurrentBackBufferIndex method, IDXGISwapChain3.GetCurrentBackBufferIndex, IDXGISwapChain3::GetCurrentBackBufferIndex, direct3ddxgi.idxgiswapchain3_getcurrentbackbufferindex, dxgi1_4/IDXGISwapChain3::GetCurrentBackBufferIndex
ms.topic: method
f1_keywords:
- dxgi1_4/IDXGISwapChain3.GetCurrentBackBufferIndex
dev_langs:
- c++
req.header: dxgi1_4.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 10 [desktop apps only]
req.target-min-winversvr: Windows Server 2016 [desktop apps only]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: Dxgi.lib
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- Dxgi.lib
- Dxgi.dll
api_name:
- IDXGISwapChain3.GetCurrentBackBufferIndex
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IDXGISwapChain3::GetCurrentBackBufferIndex


## -description


Gets the index of the swap chain's current back buffer.


## -parameters






## -returns



Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">UINT</a></b>

Returns the index of the current back buffer.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/dxgi1_4/nn-dxgi1_4-idxgiswapchain3">IDXGISwapChain3</a>
 

 

