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
Public member GetDataType
Returns the data type of a single scalar entry.
Public member GetVertexCount
Returns the number of vertices accessible through the attribute.
Public member GetAttributeElementCount
Returns the number of scalar elements in each attribute entry.
Public member GetDataTypeByteSize
Returns the byte size of a single scalar 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 vertex attribute from this attribute.

See also