Skip to content

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

@ForestCSharp

Description

@ForestCSharp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions