Home -> IIndexAttribute

Declaration

class IIndexAttribute;

Description

The IIndexAttribute interface is the common interface implemented by all index attribute types. Applications normally create IndexAttribute, RawIndexAttribute, or ReadOnlyIndexAttribute objects and pass them to buffer and renderable node APIs through this interface.

An index attribute describes the integer index stream used for indexed drawing. The attribute must be bound to an IIndexBuffer before it can be bound to an IRenderableNode.

Members

Type methods

Name Description
Public member GetDataType
Returns the data type of each index entry.
Public member GetIndexCount
Returns the number of indices accessible through the attribute.
Public member GetDataTypeByteSize
Returns the byte size of a single index entry.

Usage methods

Name Description
Public member GetPerformanceHintCpu
Returns the CPU performance hint configured for the attribute.
Public member GetPerformanceHintGpu
Returns the GPU performance hint configured for the attribute.
Public member GetDataPersistenceFlags
Returns the data persistence flags configured for the attribute.

Binding methods

Name Description
Public member IsBoundToBuffer
Reports whether this attribute has already been bound to a buffer.
Public member BuildReadOnlyAttribute
Attempts to populate a read-only index attribute from this attribute.

See also