Account for padding of structure fields in MSL backend #1081
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: Metal
Metal Shading Language
I updated Naga to the latest commit 2 days ago. My WGSL shader parses and passes validation, but produces the following error on Mac OS (i.e: when Naga attempts to general MSL):
The code I'm using is:
(Ignore the
#include
pragmas, they're gone by the time the code reaches Naga)This issue can be 'fixed' by making all but the last field of
VertexOut
a similar size, like so:The text was updated successfully, but these errors were encountered: