vkd3d-shader/msl: Implement VKD3DSIH_RSQ.

This commit is contained in:
Feifan He
2024-12-03 00:50:47 +08:00
committed by Henri Verbeet
parent bc67f2eb75
commit a06e664730
Notes: Henri Verbeet 2024-12-04 14:44:01 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1294
3 changed files with 9 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
todo(msl) draw quad
draw quad
probe (0, 0) rgba (0.272165537, 0.408248305, 0.544331074, 0.680413842) 2
[pixel shader]
@@ -21,7 +21,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 0.0
todo(msl) draw quad
draw quad
probe (0, 0) rgba (0.371390700, 0.557086051, 0.742781401, 0.0) 1
[pixel shader]
@@ -34,7 +34,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 0.0 0.0
todo(sm<4 | msl) draw quad
todo(sm<4) draw quad
probe (0, 0) rgba (0.554700196, 0.832050323, 0.0, 0.0) 1
[pixel shader]
@@ -47,7 +47,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
todo(msl) draw quad
draw quad
probe (0, 0) rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader]
@@ -60,7 +60,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
todo(msl) draw quad
draw quad
probe (0, 0) rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader fail]