Skip to main content
Per-vertex attribute within a vertex buffer layout. offset is the byte offset of this attribute within the vertex (default 0). For interleaved layouts with multiple attributes you must set offset explicitly, e.g. offset = 0 for position (float3 = 12 bytes), offset = 12 for normal, etc.

Fields

format

slot

offset