shader reflection BindingsMismatch if using a binding in one shader not used by other shaders of the same shader program.
未關閉
- 主要語言
- Rust
- 星號
- 812
- 分支
- 94
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。