Skip to content
Snippets Groups Projects
Commit 5790056c authored by Conor McCarthy's avatar Conor McCarthy Committed by Alexandre Julliard
Browse files

tests/hlsl: Add a test for WaveReadLaneAt() with a non-uniform index.

parent c9af34ab
No related branches found
No related tags found
1 merge request!863vkd3d-shader/dxil: Wave ops part 4.
...@@ -165,6 +165,26 @@ probe uav 1 (2) rui (18) ...@@ -165,6 +165,26 @@ probe uav 1 (2) rui (18)
probe uav 1 (3) rui (18) probe uav 1 (3) rui (18)
[compute shader]
RWBuffer<uint> u0;
RWBuffer<uint> u1;
[numthreads(4, 1, 1)]
void main(uint id : SV_GroupIndex)
{
uint i = u0[id] + u0[id ^ 1];
// Non-uniform lane index
u1[id] = WaveReadLaneAt(i, (id + 2) & 3);
}
[test]
todo dispatch 4 1 1
probe uav 1 (0) rui (18)
probe uav 1 (1) rui (18)
probe uav 1 (2) rui (23)
probe uav 1 (3) rui (23)
[compute shader] [compute shader]
RWBuffer<uint> u0; RWBuffer<uint> u0;
RWBuffer<uint> u1; RWBuffer<uint> u1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment