Skip to content

I think I run into a chrome bug? #4431

Answered by shaoboyan
shi-yan asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is due to padding rules : https://www.w3.org/TR/WGSL/#alignment-and-size.
Alignment of vec3 floats is 16 bytes instead of 12 bytes. So the initialized array should obey the padding rules.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
Answer selected by shi-yan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants