ppy / osu-framework

A game framework written with osu! in mind.
MIT License
1.67k stars 420 forks source link

[D3D11 non-deferred] Second uniform block does not contain proper values #6429

Open LumpBloom7 opened 6 days ago

LumpBloom7 commented 6 days ago

The default D3D11 renderer seems to behave incorrectly when shaders have a second uniform block.

The values don't seem to remain constant, and seem to vary, causing visual errors to shaders that use the second uniform block.

Curiously this doesn't seem to happen with any of the other renderers, and I don't think my uniform block usage is outright incorrect. I haven't done any investigations into why this difference occurs yet.

Relevant sentakki code

DrawNode Shader Binding

Shader Uniform Block declaration

D3D

https://github.com/user-attachments/assets/555c9ab1-3f7a-422c-94a7-a6830af13954

D3D experimental

https://github.com/user-attachments/assets/0052a5d4-757a-47a7-9243-0256b461742f

OpenGL

https://github.com/user-attachments/assets/1d46f952-3989-4b9f-8fe0-dce47c0a2c3f