vkd3d-shader/msl: Implement VKD3DSIH_ELSE.

This commit is contained in:
Feifan He
2024-12-03 00:58:19 +08:00
committed by Henri Verbeet
parent bbe10dcf17
commit ebf5828542
Notes: Henri Verbeet 2024-12-05 21:36:59 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1302
4 changed files with 37 additions and 21 deletions

View File

@@ -63,10 +63,10 @@ void main(out float4 ret : sv_target)
[test]
uniform 0 float 0.2
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (0.3, 0.4, 0.5, 0.6)
uniform 0 float 0.8
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader todo(sm<4)]
@@ -204,10 +204,10 @@ void main(out float4 ret : sv_target)
[test]
uniform 0 float 0.2
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2)
uniform 0 float 0.8
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (0.5, 0.5, 0.5, 0.5)
[pixel shader todo(sm<4)]