tests: Test FFP point size clamping.

This commit is contained in:
Elizabeth Figura
2024-10-03 17:55:33 -05:00
committed by Henri Verbeet
parent 1e3c1392bd
commit cd249a47b8
Notes: Henri Verbeet 2024-10-10 23:00:15 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1146
6 changed files with 72 additions and 3 deletions

View File

@ -21,6 +21,7 @@ float4 main() : color
}
[test]
clear rtv 0 0 0 0 0
draw point list 2
probe (149, 240) rgba (0, 0, 0, 0)
@ -32,3 +33,22 @@ probe (459, 240) rgba (0, 0, 0, 0)
probe (461, 240) rgba (0, 1, 0, 1)
probe (499, 240) rgba (0, 1, 0, 1)
probe (501, 240) rgba (0, 0, 0, 0)
[require]
shader model < 4.0
point-size
[test]
clear rtv 0 0 0 0 0
point-size 1.0 24.0 36.0
draw point list 2
probe (147, 240) rgba (0, 0, 0, 0)
probe (149, 240) rgba (0, 1, 0, 1)
probe (171, 240) rgba (0, 1, 0, 1)
probe (173, 240) rgba (0, 0, 0, 0)
probe (461, 240) rgba (0, 0, 0, 0)
probe (463, 240) rgba (0, 1, 0, 1)
probe (497, 240) rgba (0, 1, 0, 1)
probe (499, 240) rgba (0, 0, 0, 0)