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

Descriptor binding name? #155

Open
ib00 opened this issue Jul 30, 2022 · 3 comments
Open

Descriptor binding name? #155

ib00 opened this issue Jul 30, 2022 · 3 comments

Comments

@ib00
Copy link

ib00 commented Jul 30, 2022

It appears that descriptor binding name is always empty.

It appears that the name has to be obtained from
SpvReflectTypeDescription* type_description;
field.

Feature or a bug?

@chaoticbob
Copy link
Contributor

Are you using glslang?

@ib00
Copy link
Author

ib00 commented Aug 10, 2022

Yes, I am using glslang.

There's a way around it (as demonstrated in the example code using SpvReflectTypeDescription).

@chaoticbob
Copy link
Contributor

Apologies for the super late reply.

There's a disagreement between how glslang and DXC handles the binding names. Unfortunately in some cases. The full details escape me right now, but the TL;DR; is that SPIRV-Reflect favored the DXC style thus resulting in GLSL compiled with glslang to have empty descriptor binding names. I haven't been able to find a good fix for this. One thing that came up while thinking about this was possibly detecting the language and generator and adding empty names. I need to give this some more thought.

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