Change Float3 to Float32

pull/211/head
Epacnoss 3 years ago committed by GitHub
parent 12c7ba6de8
commit d9e6c4a326
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 => Float3, 1 => Float3],
attributes: &wgpu::vertex_attr_array![0 => Float32, 1 => Float32],
}
```

Loading…
Cancel
Save