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

@@ -10,7 +10,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 4.0 5.0
uniform 4 float4 10.0 11.0 12.0 13.0
draw quad
todo(msl) draw quad
probe (0, 0) rgba (166.0, 166.0, 166.0, 166.0)
[pixel shader]
@@ -25,7 +25,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 3.0 0.0 0.0
uniform 4 float4 10.0 11.0 12.0 13.0
todo(sm<4) draw quad
todo(sm<4 | msl) draw quad
probe (0, 0) rgba (53.0, 53.0, 53.0, 53.0)
[pixel shader]
@@ -40,7 +40,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 2.0 0.0 0.0 0.0
uniform 4 float4 10.0 11.0 12.0 13.0
draw quad
todo(msl) draw quad
probe (0, 0) rgba (92.0, 92.0, 92.0, 92.0)
[pixel shader]
@@ -55,7 +55,7 @@ float4 main() : SV_TARGET
[test]
uniform 0 float4 10.0 11.0 12.0 13.0
uniform 4 float4 2.0 0.0 0.0 0.0
draw quad
todo(msl) draw quad
probe (0, 0) rgba (92.0, 92.0, 92.0, 92.0)
[pixel shader]
@@ -71,7 +71,7 @@ float4 main() : SV_TARGET
% Account for both the SM1 and SM4 uniform layout
uniform 0 float4 2.0 3.0 0.0 0.0
uniform 4 float4 3.0 0.0 0.0 0.0
draw quad
todo(msl) draw quad
probe (0, 0) rgba (6.0, 6.0, 6.0, 6.0)
[pixel shader]
@@ -84,7 +84,7 @@ float4 main() : sv_target
}
[test]
draw quad
todo(msl) draw quad
probe (0, 0) rgba (110.0, 110.0, 110.0, 110.0)
[pixel shader fail]