We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running this:
glslangValidator -e main -G test.vert.hlsl
With this shader code:
out float4 l_position : SV_Position; void main() { l_position = float4(0, 0, 0, 0); }
Triggers an assert(false):
assert(false)
glslangValidator: ../SPIRV/GlslangToSpv.cpp:1233: spv::StorageClass {anonymous}::TGlslangToSpvTraverser::TranslateStorageClass(const glslang::TType&): Assertion `0' failed.
It would be more helpful to show an appropriate error message. For example, DXC shows this:
test.vert.hlsl:1:1: error: HLSL usage 'out' is only valid on a parameter out float4 l_position : SV_Position; ^~~
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Running this:
With this shader code:
Triggers an
assert(false)
:It would be more helpful to show an appropriate error message. For example, DXC shows this:
The text was updated successfully, but these errors were encountered: