Skip to content

Commit

Permalink
wgpu: Fix line vertex attribute layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Oct 17, 2023
1 parent 82331b9 commit 3f3efda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion all-is-cubes-gpu/src/in_wgpu/vertex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub(crate) struct WgpuLinesVertex {
impl WgpuLinesVertex {
const ATTRIBUTE_LAYOUT: &'static [wgpu::VertexAttribute] = &wgpu::vertex_attr_array![
0 => Float32x3,
1 => Float32x2,
1 => Float32x4,
];

pub fn desc() -> wgpu::VertexBufferLayout<'static> {
Expand Down

0 comments on commit 3f3efda

Please sign in to comment.