mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/shader-runner: Test shaders with dxcompiler.
The location of dxcompiler should be set during configuration with 'DXCOMPILER_LIBS=-L/path/to/dxcompiler', and then at runtime with LD_LIBRARY_PATH, WINEPATH or PATH as applicable. A new 'fail(sm<6)' decoration is needed on many shader declarations because dxcompiler succeeds on many shaders which fail with fxc. The opposite case is less common and is flagged with 'fail(sm>=6)'. A few tests cause dxcompiler to crash or hang, so these are avoided using [require], which now skips tests until reset instead of exiting. Also, 'todo(sm<6)' and 'todo(sm>=6)' are used to separate checking of results.
This commit is contained in:
committed by
Alexandre Julliard
parent
d211160b89
commit
57280673e5
Notes:
Alexandre Julliard
2023-10-11 22:53:48 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/346
@@ -12,7 +12,7 @@ float4 main(float tex : texcoord) : sv_target
|
||||
}
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
todo(sm>=6) draw quad
|
||||
probe ( 0, 0) rgba ( 0.00000000, 1.00000000, 0.00000000, 0.0)
|
||||
probe ( 1, 0) rgba ( 0.84147098, 0.54030231, 1.55740772, 0.0) 1024
|
||||
probe ( 2, 0) rgba ( 0.90929743, -0.41614684, -2.18503986, 0.0) 1024
|
||||
@@ -41,7 +41,7 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float4 0.0 0.52359877 2.61799387 3.14159265
|
||||
draw quad
|
||||
todo(sm>=6) draw quad
|
||||
probe all rgba (0.0, 500.0, 500.0, 0.0)
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
uniform 0 float4 0.0 0.78539816 1.57079632 2.35619449
|
||||
draw quad
|
||||
todo(sm>=6) draw quad
|
||||
probe all rgba (1000.0, 707.0, -0.0, -707.0)
|
||||
|
||||
|
||||
@@ -71,5 +71,5 @@ float4 main() : sv_target
|
||||
% tan(pi/2) is an asymtote and therefore undefined
|
||||
% so check 0, pi/4, 3pi/4, pi
|
||||
uniform 0 float4 0.0 0.78539816 2.35619449 3.14159265
|
||||
draw quad
|
||||
todo(sm>=6) draw quad
|
||||
probe all rgba (0, 1000, -1000.0, 0)
|
||||
|
Reference in New Issue
Block a user