tests/shader_runner: Introduce a Metal shader runner.

This commit is contained in:
Feifan He
2024-10-21 22:23:27 +08:00
committed by Henri Verbeet
parent da75582a14
commit b0646cb427
Notes: Henri Verbeet 2024-10-31 16:58:27 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1205
176 changed files with 1154 additions and 992 deletions

View File

@@ -8,7 +8,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
draw quad
todo(msl) 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
draw quad
todo(msl) 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) draw quad
todo(sm<4 | msl) 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
draw quad
todo(msl) 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
draw quad
todo(msl) draw quad
probe (0, 0) rgba (1.0, 1.0, 1.0, 1.0)
[pixel shader fail]