Merge pull request #217 from rokonio/patch-4

Fix on vert_attr_array
pull/223/head
sotrh 3 years ago committed by GitHub
commit 0b1adb463f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -182,7 +182,7 @@ Specifying the attributes as we did now is quite verbose. We could use the `vert
wgpu::VertexBufferLayout {
array_stride: std::mem::size_of::<Vertex>() as wgpu::BufferAddress,
step_mode: wgpu::InputStepMode::Vertex,
attributes: &wgpu::vertex_attr_array![0 => Float32, 1 => Float32],
attributes: &wgpu::vertex_attr_array![0 => Float32x3, 1 => Float32x3],
}
```

Loading…
Cancel
Save