You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: