Issue 154390
Summary [HLSL] Make global resource arrays read-only
Labels HLSL
Assignees
Reporter hekota
    Global resource arrays are read-only. The compiler needs to report an error when somebody attempts to assign a value to an array element or the whole array.

```
RWBuffer<float> A[10];
RWBuffer<float> B;
RWBuffer<float> C[10];

[numthreads(4,1,1)]
void main() {
  A[1] = B;
  A = C;
}
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to