Hi. On page 79 there is a diagram of a vertexBuffer that shows the stride between position attributes as 36 bytes, but the stride, as returned by the vertex descriptor, is actually 12 bytes.
2 Likes
Well done! Thatβs made it through a couple of editions.
A vertex descriptor format .float3
is made up of three floats, each with a stride of 4.
However, the simd_float3
is padded for alignment, so will have a stride of 16 bytes.
1 Like