Issue |
160716
|
Summary |
[SPIRV][HLSL] Incorrect binding attributes on resource arrays
|
Labels |
HLSL,
backend:SPIR-V
|
Assignees |
s-perron
|
Reporter |
s-perron
|
See https://godbolt.org/z/eWWaoT9bq. Note that `%21` (the variable named "b") has two binding attributes:
```
OpDecorate %21 DescriptorSet 0
OpDecorate %21 Binding 0
OpDecorate %21 Binding 1
```
It should only have the binding 0.
```
RWStructuredBuffer<float> b[4];
[numthreads(1,1,1)]
void main() {
b[0][0] = b[1][0];
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs