shaderc icon indicating copy to clipboard operation
shaderc copied to clipboard

Uniform names are wiped for OpenGL usage

Open Khhs167 opened this issue 1 year ago • 3 comments

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!

Khhs167 avatar Apr 12 '23 11:04 Khhs167

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

dneto0 avatar Apr 21 '23 22:04 dneto0

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

Khhs167 avatar Apr 22 '23 07:04 Khhs167

Great. We depend on Glslang for the functionality.

dneto0 avatar Jun 23 '23 21:06 dneto0