Issue |
140819
|
Summary |
[DirectX] Unable to use global resource handles with `-O0`
|
Labels |
bug
|
Assignees |
|
Reporter |
Icohedron
|
With `-O0`, global resource handles can not be used due to error `error: Load of "" is not a global resource handle`.
```hlsl
// RUN: clang-dxc -E CSMain -T cs_6_7 -O0 %s
RWBuffer<uint> output : register(u0);
[numthreads(1,1,1)]
void CSMain() {
output[0] = 0;
}
```
Reproduction: https://godbolt.org/z/6vP5xxYsE
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs