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

Uniform names are wiped for OpenGL usage #1320

Open
Khhs167 opened this issue Apr 12, 2023 · 3 comments
Open

Uniform names are wiped for OpenGL usage #1320

Khhs167 opened this issue Apr 12, 2023 · 3 comments

Comments

@Khhs167
Copy link

Khhs167 commented Apr 12, 2023

I am currently working on a project in OpenGL, and I decided to use shaderc to compile HLSL into SPIR-V for usage in OpenGL, and I discovered that when I try to set a uniform, the names are not included with the shader program!

RenderDoc seems to be able to put something together, but it is barely usable, so I am wondering, is there some form of reflection available, or do I just have to manually bind and document uniforms?

It might be worth noting that I use Vortice.ShaderCompiler for bindings, as shaderc.net presented a ton of issues for me.

Any help is much appreciated!

@dneto0
Copy link
Collaborator

dneto0 commented Apr 21, 2023

This seems like an issue for Glslang which actually compiles the code.
https://github.com/KhronosGroup/glslang

@Khhs167
Copy link
Author

Khhs167 commented Apr 22, 2023

As you can see, I opened the same(ish) issue in the glslang repo.
direct link

@dneto0
Copy link
Collaborator

dneto0 commented Jun 23, 2023

Great. We depend on Glslang for the functionality.

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