Values for certain types of uniforms within UBOs are shown incorrectly
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
首先在 Spector.js Chrome 扩展中重现 GLSL uniform block,并跟踪 UBO uniform 值的读取和显示方式,重点关注 arrayStride 的处理。将显示的 frustumSplits 值与写入 buffer 的值进行比较;当 UBO 中的数组元素以正确的 offset 显示时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I was using Spector.js Chrome extension to debug our migration to UBOs and stumbled upon this.
We have the following uniform block:
layout(std140) uniform DirectLightShadowCastersUBO {
float frustumSplits[3];
int directShadowCastersMask[1];
mat4 directShadowCastersTransforms[3];
};
And spector shows the following for frustumSplits
The displayed value is 0.1683, 0, 0 which is wrong. The last two values shouldn't be zeroes.
I think Spector is ignoring arrayStride here, because when I put some numbers into the buffer one after another I can actually see them in Spector.
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 193
- 平均合并
- 12 分钟
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
BabylonJS/Spector.js 的其他 Issue
-
Invalid RegularExpression causes failure on loading of script bundled with Spector.js on IOS <= 15未关闭
难度 2/5 1-3 小时 新手友好度 70/100
BabylonJS/Spector.js#419 ·
-
难度 4/5 3-5 天 新手友好度 35/100
BabylonJS/Spector.js#299 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
BabylonJS/Spector.js#184 · 2 条评论 · 2 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
BabylonJS/Spector.js#172 · 3 条评论 ·
-
Add Remote Device Capture可能重新可做 @sebavan 于 3318 天前认领,目前没有进行中的 PR。 未关闭enhancement
BabylonJS/Spector.js#79 · 4 条评论 · 已指派 1 人 ·
查看 BabylonJS/Spector.js 的全部 Issue
相似的 Issue
-
Add: Alfa Dramas未关闭check:passed streams:add
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
moq-dev/moq#10463 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
ardia-browser/ardia#6391 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
liberation-data/desk#68 ·
维护者通常 1 天内回复
-
usability
难度 2/5 1-3 小时 新手友好度 88/100
inmanta/web-console#8165 ·
维护者通常 1 天内回复