Issue 125698
Summary [HLSL][SPIRV] Handle atomic operations on RWBuffers
Labels HLSL, backend:SPIR-V
Assignees s-perron
Reporter s-perron
    In HLSL, RWBuffer can be used in atomic operations. The existing code can handle only direct loads and stores.

See https://godbolt.org/z/9s3sfen4h for an example. The HLSL source is:

```
RWBuffer<int> b : register(u0);

[numthreads(1,1,1)]
void main()
{
    int a;
 InterlockedAdd(b[0], 1, a);
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to