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

shader reflection BindingsMismatch if using a binding in one shader not used by other shaders of the same shader program. #264

Open
ForestCSharp opened this issue Jan 22, 2020 · 1 comment

Comments

@ForestCSharp
Copy link

While attempting to add a new uniform buffer (binding = 2) to my fragment shader, I received a BindingsMismatch error if that uniform buffer wasn't also defined (and actually used) in my vertex shader. The issue was a BindingsMismatch Err being thrown in the merge function of the reflect module.

To be clear, just defining the uniform in the vertex shader was insufficient, and it had to actually be used in my vertex shader to fix this reflection issue.

@ForestCSharp
Copy link
Author

@ForestCSharp ForestCSharp changed the title BindingsMismatch if using a binding in one shader not used by other shaders. shader reflection BindingsMismatch if using a binding in one shader not used by other shaders of the same shader program. Jan 22, 2020
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

1 participant