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
According to the NonSemantic.Shader.DebugInfo.100 spec
Component Count must be a Result <id> of an OpConstant, DebugGlobalVariable, or DebugLocalVariable. If it is an OpConstant, its type must be a 32-bit or 64-bit integer type. Otherwise its type must be a DebugTypeBasic whose Size is 32 or 64 and whose Encoding is Unsigned.
However, here it's an OpSpecConstant.
I don't think there's a good reason why it can't be an OpSpecConstant instead of just a OpConstant, but the spec says what it says, and SPIRV-Tools-opt will complain about this.
The text was updated successfully, but these errors were encountered:
I think this is potentially a SPIR-V spec issue, if indeed it should be allowed. Otherwise I suppose it could be generated using a DebugGlobalVariable for the spec constant.
If a GLSL file containing
is compiled with glslang, it can turn into SPIR-V like
According to the
NonSemantic.Shader.DebugInfo.100
specHowever, here it's an
OpSpecConstant
.I don't think there's a good reason why it can't be an
OpSpecConstant
instead of just aOpConstant
, but the spec says what it says, and SPIRV-Tools-opt will complain about this.The text was updated successfully, but these errors were encountered: