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

Implicit BuiltIn generate strange NonSemantic Shader Debug Info #3862

Open
spencer-lunarg opened this issue Feb 3, 2025 · 1 comment
Open

Comments

@spencer-lunarg
Copy link
Contributor

https://godbolt.org/z/bjjz6q5so

going

#version 450
void main(){ 
    gl_Position = vec4(0);
}

I get things like

%39 = OpString "gl_PointSize"
%42 = OpString "gl_CullDistance"

%38 = OpExtInst %void %1 DebugTypeMember %39 %29 %18 %uint_1 %uint_42 %uint_0 %uint_0 %uint_3
%41 = OpExtInst %void %1 DebugTypeMember %42 %33 %18 %uint_1 %uint_85 %uint_0 %uint_0 %uint_3

and it is pointing to Line 1and Column 42 and 85 which don't exists in the source

I guess I would imagine a 2nd DebugSource is created to store all these implicit built-ins (or at least someone way to know where these are from)

@spencer-lunarg
Copy link
Contributor Author

Looking what slang does, I think the thing to do here is emit these implicit Built-Ins maybe

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

No branches or pull requests

1 participant