vkd3d-shader/dxil: Implement DX instructions ThreadId, GroupId, ThreadIdInGroup and FlattenedThreadIdInGroup.

This commit is contained in:
Conor McCarthy
2023-06-15 12:18:46 +10:00
committed by Alexandre Julliard
parent c7dcfc2a04
commit b708a9b3b5
Notes: Alexandre Julliard 2024-03-27 23:07:08 +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/707
2 changed files with 73 additions and 4 deletions

View File

@@ -172,7 +172,7 @@ size (2d, 2, 2)
1.0 1.0
[compute shader]
/* Attributes are taken from the first function, and dropped from the second. */
/* In SM < 6.0, attributes are taken from the first function, and dropped from the second. */
RWTexture2D<float> u;
[numthreads(2, 1, 1)]
@@ -185,8 +185,10 @@ void main(uint2 id : sv_dispatchthreadid)
}
[test]
todo(sm>=6 | glsl) dispatch 1 1 1
todo(glsl) dispatch 1 1 1
probe uav 0 (0, 0) r (2.0)
probe uav 0 (0, 1) r (1.0)
probe uav 0 (1, 0) r (2.0)
if(sm<6) probe uav 0 (0, 1) r (1.0)
if(sm<6) probe uav 0 (1, 0) r (2.0)
probe uav 0 (1, 1) r (1.0)
if(sm>=6) probe uav 0 (0, 1) r (2.0)
if(sm>=6) probe uav 0 (1, 0) r (1.0)