Skip to content

Does wgpu always require 16 byte aligned arrays? #3156

Answered by cwfitzgerald
spencerkohan asked this question in Q&A
Discussion options

You must be logged in to vote

I think you can probably call this a bug in Naga. The spirv/glsl frontends should translate this pattern to a valid module. The reason it's a problem is that glsl auto-pads to 16, whereas wgsl requires everything be properly aligned already

Replies: 1 comment

Comment options

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