Update README.md

When the vertex class is updated, the `bytemuck`s trait were missing
pull/194/head
Rokonio 3 years ago committed by GitHub
parent c22808f17a
commit 0f63cee02e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -298,7 +298,7 @@ First, we'll change the `Vertex` struct:
```rust
#[repr(C)]
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
struct Vertex {
position: [f32; 3],
tex_coords: [f32; 2], // NEW!

Loading…
Cancel
Save