You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should @diagnostic be allowed in the middle of lines? #4595
The grammar says the WGSL directive is allowed at that point, which seems like the right call to me. I don't think the analogy with C++ #pragma is very strong.
Activity
ben-clayton commentedon Apr 23, 2024
The placement of this diagnostic is explicitly called out at: https://www.w3.org/TR/WGSL/#diagnostic-filtering
See:
jimblandy commentedon Apr 30, 2024
The grammar says the WGSL directive is allowed at that point, which seems like the right call to me. I don't think the analogy with C++
#pragmais very strong.mwyrzykowski commentedon Apr 30, 2024
Sounds good to me, thanks for pointing out the places where this is allowed @ben-clayton - sorry I missed that grepping the specification