[Chapter 4] Typo in the Vertex Function?

Shouldn’t the stride of the Vertex buffer be 12 bytes and not 36?

1 Like

Yes! Thank you!

The stride is definitely 12 bytes when you have three Floats in it. Later, when you have a SIMD3<Float> (typealiased to float3), the stride will be be 16 bytes.

1 Like