amethyst / amethyst/rendy

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

未關閉
#264 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。