mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests/hlsl: Add int64 wave op tests.
This commit is contained in:
parent
50306a8b08
commit
f3fac95bb6
Notes:
Henri Verbeet
2024-12-09 16:17:26 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/820
@ -55,3 +55,67 @@ probe uav 1 (0) rgbai (3, 5, -1, 2)
|
||||
probe uav 1 (1) rgbai (3, 5, -1, 2)
|
||||
probe uav 1 (2) rgbai (3, 5, -1, 2)
|
||||
probe uav 1 (3) rgbai (3, 5, -1, 2)
|
||||
|
||||
|
||||
[require]
|
||||
shader model >= 6.0
|
||||
wave-ops
|
||||
int64
|
||||
format r32g32b32a32-sint uav-load
|
||||
|
||||
[uav 0]
|
||||
format r32g32b32a32-sint
|
||||
size (buffer, 4)
|
||||
|
||||
-3 -1 -4 2
|
||||
3 1 -4 2
|
||||
0 5 -3 2
|
||||
-1 -1 -1 2
|
||||
|
||||
[uav 1]
|
||||
format r32g32b32a32-sint
|
||||
size (buffer, 16)
|
||||
|
||||
0 0 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 0
|
||||
|
||||
[compute shader]
|
||||
RWBuffer<int64_t2> u0;
|
||||
RWBuffer<int64_t2> u1;
|
||||
|
||||
[numthreads(4, 1, 1)]
|
||||
void main(uint id : SV_GroupIndex)
|
||||
{
|
||||
u1[id] = WaveActiveMin(u0[id]);
|
||||
}
|
||||
|
||||
[test]
|
||||
dispatch 4 1 1
|
||||
probe uav 1 (0) rgbai(-3, -1, -4, 2)
|
||||
probe uav 1 (1) rgbai(-3, -1, -4, 2)
|
||||
probe uav 1 (2) rgbai(-3, -1, -4, 2)
|
||||
probe uav 1 (3) rgbai(-3, -1, -4, 2)
|
||||
|
||||
|
||||
[compute shader]
|
||||
RWBuffer<int64_t2> u0;
|
||||
RWBuffer<int64_t2> u1;
|
||||
|
||||
[numthreads(4, 1, 1)]
|
||||
void main(uint id : SV_GroupIndex)
|
||||
{
|
||||
u1[id] = WaveActiveMax(u0[id]);
|
||||
}
|
||||
|
||||
[test]
|
||||
dispatch 4 1 1
|
||||
probe uav 1 (0) rgbai(0, 5, -1, 2)
|
||||
probe uav 1 (1) rgbai(0, 5, -1, 2)
|
||||
probe uav 1 (2) rgbai(0, 5, -1, 2)
|
||||
probe uav 1 (3) rgbai(0, 5, -1, 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user