Skip to content

Commit

Permalink
Add padding to Vertex struct in GLSL to work around Naga gen bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Dec 22, 2024
1 parent 0ce22c3 commit d067131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shaders/model-draw.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct Vertex {
position: vec3f,
normal: u32,
tex_coords: vec2f,
pad: vec2f,
}
var<storage, read> g_vertices: array<Vertex>;

Expand Down

0 comments on commit d067131

Please sign in to comment.