Open
Description
I think I have found another undeclared identifier issue in SPIRV-Cross. I'm using the latest commit, so the previous fix has been applied, yet I still get undeclared identifier errors when converting to HLSL.
Here is a fragment of the HLSL output that is causing the issue:
for (;;)
{
_22.Store(_200 * 4 + 0, 23u);
uint _203 = _200 + 1u;
break;
}
uint _213;
uint _214;
uint _230;
uint _231;
uint _238;
uint _239;
uint _205 = _203;
I presume in HLSL, normal scoping rules apply, so the uint _203 = _200 + 1u
definition is not visible to the uint _205 = _203
line? _205
is not declared anywhere else above this.
Bug report: KhronosGroup/SPIRV-Cross#1972
Activity