Skip to content

Latest commit

 

History

History
88 lines (67 loc) · 4 KB

nf-d3d10-id3d10device-iasetindexbuffer.md

File metadata and controls

88 lines (67 loc) · 4 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr 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 req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d10.ID3D10Device.IASetIndexBuffer
ID3D10Device::IASetIndexBuffer (d3d10.h)
Bind an index buffer to the input-assembler stage. (ID3D10Device.IASetIndexBuffer)
608d16ec-f6d6-ea93-bc37-fe7d34d07215
IASetIndexBuffer
IASetIndexBuffer method [Direct3D 10]
IASetIndexBuffer method [Direct3D 10]
ID3D10Device interface
ID3D10Device interface [Direct3D 10]
IASetIndexBuffer method
ID3D10Device.IASetIndexBuffer
ID3D10Device::IASetIndexBuffer
d3d10/ID3D10Device::IASetIndexBuffer
direct3d10.id3d10device_iasetindexbuffer
direct3d10\id3d10device_iasetindexbuffer.htm
direct3d10
VS|directx_sdk|~\id3d10device_iasetindexbuffer.htm
12/05/2018
608d16ec-f6d6-ea93-bc37-fe7d34d07215, IASetIndexBuffer, IASetIndexBuffer method [Direct3D 10], IASetIndexBuffer method [Direct3D 10],ID3D10Device interface, ID3D10Device interface [Direct3D 10],IASetIndexBuffer method, ID3D10Device.IASetIndexBuffer, ID3D10Device::IASetIndexBuffer, d3d10/ID3D10Device::IASetIndexBuffer, direct3d10.id3d10device_iasetindexbuffer
d3d10.h
Windows
D3D10.lib
Windows
19H1
ID3D10Device::IASetIndexBuffer
d3d10/ID3D10Device::IASetIndexBuffer
c++
APIRef
kbSyntax
COM
D3D10.lib
D3D10.dll
ID3D10Device.IASetIndexBuffer

ID3D10Device::IASetIndexBuffer

-description

Bind an index buffer to the input-assembler stage.

-parameters

-param pIndexBuffer [in]

Type: ID3D10Buffer*

A pointer to a buffer (see ID3D10Buffer) that contains indices. The index buffer must have been created with the D3D10_BIND_INDEX_BUFFER flag.

-param Format [in]

Type: DXGI_FORMAT

Specifies format of the data in the index buffer. The only formats allowed for index buffer data are 16-bit (DXGI_FORMAT_R16_UINT) and 32-bit (DXGI_FORMAT_R32_UINT) integers.

-param Offset [in]

Type: UINT

Offset (in bytes) from the start of the index buffer to the first index to use.

-remarks

For information about creating index buffers, see Create an Index Buffer.

Calling this method using a buffer that is currently bound for writing (i.e. bound to the stream output pipeline stage) will effectively bind NULL instead because a buffer cannot be bound as both an input and an output at the same time.

The Debug Layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will not hold a reference to the interfaces passed in. For that reason, applications should be careful not to release an interface currently in use by the device.

-see-also

ID3D10Device Interface