Contents

offset

The offset, in bytes, of vertex data for the attribute in a vertex buffer, relative to the start of data for each vertex.

Declaration

var offset: Int { get set }

Discussion

For example, if a vertex buffer contains interleaved data for two attributes, the first attribute’s offset is typically zero, and the second attribute’s offset is at least the data size of the first attribute.

See Also

Inspecting a Vertex Attribute