|
|
|
@ -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],
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|