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
Have a more explicit error when trying to use a struct member output interpolator as an input #4307
Hello
This is a suggestion because I founded that the error given by the compiler was not really explicit when trying a compile a mesh shader.
I made a very minimal repro here, try to compile this file:
main.hlsl:11: error: Function main with parameter is not permitted, it should be inlined. Validation failed.
Which is not very explicit, in a huge shader I would really appreciate to have something like:
main.hlsl:22: error: you use semantic output member m_value as an input which is forbbiden
The same kind of error happen when you use for instance _vertices[ _sv_groupthreadid.x ].m_value as a function parameter even if the parameter of the function is marked as out
Activity
BartmanAbyss commentedon Nov 20, 2023
+1
same with this mesh shader