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

QUESTION: How do I stop the extension from marking 'gl_VertexIndex' as an undeclared identifier? #122

Open
Lexxaro opened this issue Jan 19, 2024 · 2 comments

Comments

@Lexxaro
Copy link

Lexxaro commented Jan 19, 2024

I'm using the extension for a vulkan project where I'm compiling all my shaders with a custom build tool using the glslc.exe that is provided by the Vulkan SDK. This compiler doesn't know of 'gl_VertexID', so I'd like to use 'gl_VertexIndex'.

For some reason the extension marks 'gl_VertexIndex' as an undeclared identifier. How could I change this behaviour?

@danielscherzer
Copy link
Owner

danielscherzer commented Jan 20, 2024

Thanks for using my extension!

gl_VertexIndex is known to the extension for coloring and for auto-completion.
To clarify: You mean the extension is putting wiggly lines below the gl_VertexIndex keyword and reporting an error regarding gl_VertexIndex' is an undeclared identifier?

If this is the case than the shader compiler is returning this error.
The extension uses the shader compiler of the driver of your graphics card as a default or you can set a custom one (including arguments) in the extension options.

Hope this helps, Daniel

@Lexxaro
Copy link
Author

Lexxaro commented Jan 20, 2024 via email

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

2 participants