Home -> IIndexBuffer -> BindIndexAttributeManualLayout

Description

The BindIndexAttributeManualLayout method binds the specified IndexAttribute as a member of the buffer, with a manually defined buffer offset and stride.

Usage

SuccessToken BindIndexAttributeManualLayout(IIndexAttribute& indexAttribute, size_t bufferOffsetInBytes, size_t bufferStrideInBytes);

Argument list

indexAttribute [IIndexAttribute]
The index attribute to bind to this index buffer.
bufferOffsetInBytes [size_t]
The byte offset from the start of the buffer to the first index value.
bufferStrideInBytes [size_t]
The byte stride between consecutive index values.

Return value

[SuccessToken]
True if the operation succeeded, false otherwise. An assertion will be raised in debug builds if the result is not tested.

See also