Instance Property

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

@property(nonatomic, readwrite) NSUInteger offset;

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

name

An identifier for the semantic use of the vertex attribute.

format

The format of per-vertex data for the attribute.

bufferIndex

The index of the vertex buffer containing data for this attribute in a mesh’s vertexBuffers array.

initializationValue

The default value for vertex data for this attribute.