vkd3d-shader/spirv: Clamp push constant CBV sizes to those of the push constant ranges backing them.

Otherwise invalid SPIR-V may be generated, because the CBV field in
"push_cb_struct" may end up overlapping with a subsequent one.
This commit is contained in:
Giovanni Mascellani
2025-11-12 13:43:59 +01:00
committed by Henri Verbeet
parent 2903831f79
commit 7f377879fc
Notes: Henri Verbeet 2025-11-12 15:31:45 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1826
3 changed files with 11 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ float4 main() : SV_Target
[test]
uniform 0 float4 1.0 2.0 3.0 4.0
todo(d3d12 & !windows & !mvk) draw quad
draw quad
probe (0, 0) f32(2.0, 3.0, 4.0, 5.0)
[require]