mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Implement the InterlockedExchange() intrinsic.
This commit is contained in:
Notes:
Henri Verbeet
2025-01-20 16:18:51 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Elizabeth Figura (@zfigura) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1330
@@ -217,7 +217,7 @@ size (buffer, 5)
|
||||
|
||||
% The value fields of other Interlocked functions are always uint.
|
||||
|
||||
[compute shader fail(sm<5) todo(sm>=5)]
|
||||
[compute shader fail(sm<5)]
|
||||
RWBuffer<uint> u : register(u1);
|
||||
RWBuffer<int> s : register(u2);
|
||||
|
||||
@@ -245,7 +245,7 @@ void main()
|
||||
[test]
|
||||
uniform 0 uint 0xffffffff
|
||||
uniform 1 float -1
|
||||
todo(sm<6) dispatch 1 1 1
|
||||
todo(glsl | msl) dispatch 1 1 1
|
||||
if(sm<6) probe uav 1 (0) rui (0xffffffff)
|
||||
if(sm>=6) probe uav 1 (0) rui (0xfffffffd)
|
||||
probe uav 1 (1) rui (0)
|
||||
|
Reference in New Issue
Block a user