tests/shader_runner_metal: Run the Metal shader runner with DXIL shaders.

This commit is contained in:
Giovanni Mascellani
2025-07-14 22:22:04 +02:00
committed by Henri Verbeet
parent d898923b1c
commit 3817df1164
Notes: Henri Verbeet 2025-08-04 15:08:24 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1619
87 changed files with 501 additions and 483 deletions

View File

@@ -37,10 +37,10 @@ float4 main() : sv_target
[test]
uniform 0 float 0.2
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4)
uniform 0 float 0.8
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.5, 0.6, 0.7, 0.8)
[pixel shader todo(sm<4)]
@@ -63,10 +63,10 @@ void main(out float4 ret : sv_target)
[test]
uniform 0 float 0.2
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.3, 0.4, 0.5, 0.6)
uniform 0 float 0.8
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4)
[pixel shader todo(sm<4)]
@@ -89,13 +89,13 @@ void main(out float4 ret : sv_target)
[test]
uniform 0 float 0.1
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4) 1
uniform 0 float 0.5
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.2, 0.3, 0.4, 0.5) 1
uniform 0 float 0.9
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.5, 0.6, 0.7, 0.8) 1
[pixel shader todo(sm<4)]
@@ -115,13 +115,13 @@ void main(out float4 ret : sv_target)
[test]
uniform 0 float 0.1
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.1, 0.2, 0.3, 0.4) 1
uniform 0 float 0.5
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.5, 0.6, 0.7, 0.8) 1
uniform 0 float 0.9
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.4, 0.5, 0.6, 0.7) 1
[pixel shader]
@@ -160,23 +160,23 @@ void main(out float4 ret : sv_target)
[test]
uniform 0 float 0.0
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.1, 0.1, 0.1, 0.1) 1
uniform 0 float 0.1
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2) 1
uniform 0 float 0.3
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.4, 0.4, 0.4, 0.4) 1
uniform 0 float 0.7
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.8, 0.8, 0.8, 0.8) 1
uniform 0 float 0.9
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.9, 0.9, 0.9, 0.9) 1
[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) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2)
uniform 0 float 0.8
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.5, 0.5, 0.5, 0.5)
[pixel shader todo(sm<4)]
@@ -236,21 +236,21 @@ void main(out float4 ret : sv_target)
uniform 0 float4 0.3 0.0 0.0 0.0
uniform 4 float4 0.0 0.0 0.0 0.0
uniform 8 float4 0.1 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.1, 0.1, 0.1, 0.1) 1
uniform 4 float4 0.35 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.2, 0.2, 0.2, 0.2) 1
uniform 8 float4 0.5 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.4, 0.4, 0.4, 0.4) 1
uniform 0 float4 1.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.4, 0.4, 0.4, 0.4) 1
uniform 4 float4 2.0 0.0 0.0 0.0
todo(sm<4) draw quad
todo(sm<4 | msl & sm>=6) draw quad
probe (0, 0) rgba (0.9, 0.9, 0.9, 0.9) 1