mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests/hlsl: Add a test for SV_Coverage out.
This commit is contained in:
parent
e1c774bfeb
commit
e4724b4635
Notes:
Alexandre Julliard
2024-05-14 23:00:31 +02: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/864
@ -1,10 +1,29 @@
|
||||
[require]
|
||||
shader model >= 5.0
|
||||
shader model >= 4.1
|
||||
|
||||
[rtv 0]
|
||||
format r32g32b32a32 float
|
||||
size (2dms, 4, 640, 480)
|
||||
|
||||
[pixel shader todo]
|
||||
float4 main(out uint sample_mask : SV_Coverage) : SV_Target
|
||||
{
|
||||
sample_mask = 0x5;
|
||||
return float4(1.0, 1.0, 1.0, 1.0);
|
||||
}
|
||||
|
||||
[test]
|
||||
todo draw quad
|
||||
probe all rgba (0.5, 0.5, 0.5, 0.5)
|
||||
sample mask 0x0b
|
||||
clear rtv 0 0.0 0.0 0.0 0.0
|
||||
todo draw quad
|
||||
probe all rgba (0.25, 0.25, 0.25, 0.25)
|
||||
|
||||
|
||||
[require]
|
||||
shader model >= 5.0
|
||||
|
||||
[uav 1]
|
||||
format r32 uint
|
||||
size (2d, 4, 4)
|
||||
@ -24,6 +43,7 @@ float4 main(float4 position : SV_Position, uint coverage : SV_Coverage) : SV_Tar
|
||||
|
||||
[test]
|
||||
sample mask 0x01
|
||||
clear rtv 0 0.0 0.0 0.0 0.0
|
||||
todo(sm<6) draw quad
|
||||
probe all rgba (0.0, 0.25, 0.0, 0.25)
|
||||
probe uav 1 all rui (0x01)
|
||||
|
Loading…
Reference in New Issue
Block a user