Home -> IVertexAttribute
Declaration
class IVertexAttribute;Description
The IVertexAttribute interface is the common interface implemented by all vertex attribute types. Applications normally create VertexAttribute, RawVertexAttribute, or ReadOnlyVertexAttribute objects and pass them to buffer and renderable node APIs through this interface.
A vertex attribute describes a stream of per-vertex or per-instance data, including scalar type, vector element count, entry count, usage hints, and data persistence behaviour. The attribute must be bound to an IVertexBuffer before it can be used for drawing.
Members
Type methods
| Name | Description | |
|---|---|---|
| GetDataType | Returns the data type of a single scalar entry. |
|
| GetVertexCount | Returns the number of vertices accessible through the attribute. |
|
| GetAttributeElementCount | Returns the number of scalar elements in each attribute entry. |
|
| GetDataTypeByteSize | Returns the byte size of a single scalar 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 vertex attribute from this attribute. |