mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/shader-runner: Introduce "if" qualifier.
When the "if" qualifier is added to a directive, the directive is skipped if the shader->minimum_shader_model is not included in the range. This can be used on the "probe" directives for tests that have different expected results on different shader models, without having to resort to [require] blocks.
This commit is contained in:
committed by
Alexandre Julliard
parent
faec42e8a1
commit
22c47e57f5
Notes:
Alexandre Julliard
2024-02-13 23:11:43 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/616
@@ -1,7 +1,3 @@
|
||||
% Returns (0.1, 0.3, 0.2, 0.4) with dxcompiler
|
||||
[require]
|
||||
shader model < 6.0
|
||||
|
||||
[pixel shader]
|
||||
typedef const precise row_major float2x2 mat_t;
|
||||
float4 main() : sv_target
|
||||
@@ -12,4 +8,5 @@ float4 main() : sv_target
|
||||
|
||||
[test]
|
||||
draw quad
|
||||
probe all rgba (0.1, 0.2, 0.3, 0.4)
|
||||
if(sm<6) probe all rgba (0.1, 0.2, 0.3, 0.4)
|
||||
if(sm>=6) probe all rgba (0.1, 0.3, 0.2, 0.4)
|
||||
|
||||
Reference in New Issue
Block a user