ID3D11DeviceContext::IAGetIndexBuffer Method

Get a pointer to the index buffer that is bound to the input-assembler stage.

Syntax

public:
void IAGetIndexBuffer(
         ID3D11Buffer **pIndexBuffer,
         DXGI_FORMAT *Format,
         UINT *Offset
)  

Parameters

pIndexBuffer
Type: ID3D11Buffer **

[out, optional] A pointer to an index buffer returned by the method (see ID3D11Buffer).

Format
Type: DXGI_FORMAT *

[out, optional] Specifies format of the data in the index buffer (see DXGI_FORMAT). These formats provide the size and type of the data in the buffer. The only formats allowed for index buffer data are 16-bit (DXGI_FORMAT_R16_UINT) and 32-bit (DXGI_FORMAT_R32_UINT) integers.

Offset
Type: UINT *

[out, optional] Offset (in bytes) from the start of the index buffer, to the first index to use.

Return value

None.

Remarks

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11DeviceContext

ID3D11DeviceContext Members