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
Description
When entry point parameter with SV_IsFrontFace semantic have type other than bool, SPIR-V compilation result in fatal error:
fatal error: generated SPIR-V is invalid: [VUID-FrontFacing-FrontFacing-04231] According to the Vulkan spec BuiltIn FrontFacing variable needs to be a bool scalar. ID <2> (OpVariable) is not a bool scalar.
%gl_FrontFacing = OpVariable %_ptr_Input_uint Input
note: please file a bug report on https://github.com/Microsoft/DirectXShaderCompiler/issues with source code if possible
Because of the poor error message from spirv-val, we try to catch these earlier when possible. We could try to validate the type somewhere in SpirvEmitter.cpp. However, these type of bugs are low priority for us at this time.
We will accept a fix, but my team will not be looking into it.
Description
When entry point parameter with
SV_IsFrontFace
semantic have type other than bool, SPIR-V compilation result in fatal error:Steps to Reproduce
https://godbolt.org/z/1v7ec17nG
Compile with
-E PSMain -T ps_6_6 -spirv
Actual Behavior
Ordinary error with file and line number should be displayed instead of fatal error.
Environment
The text was updated successfully, but these errors were encountered: