Naga Error Message Is Cryptic on Missing Specifier in Struct #6837
Labels
area: naga middle-end
Intermediate representation
kind: diagnostics
Error message should be better
naga
Shader Translator
Description
I'm trying to extend bevy's shaders, and I need to pass an extra value from vertex to fragment. Bevy has a few functions available which take the original
VertexOutput
struct as a parameter. Therefore, I decided that introducing this struct would be reasonable:And then replaced the input/output types of my vertex/fragment shaders with
ActualOut
. Unfortunately, Naga complains about theinner
field lacking an@location
marker -- I'm not sure if this is actually incorrect according to the spec, however in any case if it is indeed the intended behaviour then the error is massively cryptic:I'm running on naga v23.1.0.
If you need more details (a repro isn't super easy to put together, but if you need me to I'd be happy to do so), please let me know.
The text was updated successfully, but these errors were encountered: