The Attribute describes a single vertex attribute in a QSGGeometry .

The Attribute struct describes the attribute register position, the size of the attribute tuple and the attribute type.

It also contains a hint to the renderer if this attribute is the attribute describing the position. The scene graph renderer may use this information to perform optimizations.

It contains a number of bits which are reserved for future use.

See also

QSGGeometry

Creates a new Attribute for attribute register pos with tupleSize. The primitiveType can be any of the supported types from Type , such as FloatType or UnsignedByteType .

If the attribute describes the position for the vertex, the isPosition hint should be set to true. The scene graph renderer may use this information to perform optimizations.

Use the create function to construct the attribute, rather than an initialization list, to ensure that all fields are initialized.

Creates a new Attribute for attribute register pos with tupleSize. The primitiveType can be any of the supported types from Type , such as FloatType or UnsignedByteType .

attributeType describes the intended use of the attribute.

Use the create function to construct the attribute, rather than an initialization list, to ensure that all fields are initialized.