Taking the address of a vector component should not be allowed #7271
Labels
area: naga middle-end
Intermediate representation
area: validation
Issues related to validation, diagnostics, and error handling
naga
Shader Translator
type: bug
Something isn't working
The spec states (https://gpuweb.github.io/gpuweb/wgsl/#address-of-expr):
In naga#2451, which was a (never merged) fix for #4541, the concern was raised that passing pointers to vector components doesn't work in Metal and might need to be emulated. But if I am understanding the spec correctly, it should not be supported at all.
I would assume that the same treatment should apply to matrices. Tint appears to do so, but I don't see it stated explicitly in the spec.
The test case in #4541 is about pointers to array elements, that issue remains.
The text was updated successfully, but these errors were encountered: