google / google/shaderc

Uniform names are wiped for OpenGL usage

Open
#1,320 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.2k
Forks
445
Avg merge
11h 6m
Merged PRs (30d)
6

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.