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 | |
|---|---|---|
| GetDataType | Returns the data type of each index entry. |
|
| GetIndexCount | Returns the number of indices accessible through the attribute. |
|
| GetDataTypeByteSize | Returns the byte size of a single index entry. |
Usage methods
| Name | Description | |
|---|---|---|
| GetPerformanceHintCpu | Returns the CPU performance hint configured for the attribute. |
|
| GetPerformanceHintGpu | Returns the GPU performance hint configured for the attribute. |
|
| GetDataPersistenceFlags | Returns the data persistence flags configured for the attribute. |
Binding methods
| Name | Description | |
|---|---|---|
| IsBoundToBuffer | Reports whether this attribute has already been bound to a buffer. |
|
| BuildReadOnlyAttribute | Attempts to populate a read-only index attribute from this attribute. |