Skip to content
New issue

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

SPIRV-Cross->HLSL: undeclared identifier #25

Open
Jack-Clark opened this issue Jul 5, 2022 · 0 comments
Open

SPIRV-Cross->HLSL: undeclared identifier #25

Jack-Clark opened this issue Jul 5, 2022 · 0 comments

Comments

@Jack-Clark
Copy link
Collaborator

Jack-Clark commented Jul 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant