<attribute> (//pfx/pipeline/attribute)

An <attribute> element defines a vertex attribute

An <attribute> element defines a vertex attribute. It must be matching in all defined respects with the actual attribute in attribute shader.

Attributes (<attribute> element)

ATTRIBUTE

Description

location

Index of the vertex attribute. If location is not explicitly set in the shader, the variable attribute will additionally need to be provided.

If location is explicitly set in the shader, this value must match it.

vboBinding

Which vertex buffer object binding this attribute comes from.

variable

(OPTIONAL) A variable name, as specified in the shader. This may be required by the implementation (OpenGL ES 2), supported (OpenGL ES 3), or not supported at all.

This will need to be provided whenever the attribute location is not explicitly set in the shader.

semantic

References an application specific semantic. It can be used by the application to select the data that will populate this attribute from the models that will be rendered by this pipeline.

dataType

The datatype of this attribute.

apiVersion

(OPTIONAL) A string describing which API versions this element will be active for. If omitted, always active.