Commit 2b90cd3
authored
[SPIR-V] Create ResourceHeap when directly returned (#8006)
Currently, HLSL of the form "return ResourceDescriptorHeap[0];" will
break compilation, if this is the first reference to
ResourceDescriptorHeap encountered by the SpirvEmitter. Please see the
enclosed testcase, at
[https://godbolt.org/z/3aWcq5roa](https://godbolt.org/z/3aWcq5roa)1 parent 4c613aa commit 2b90cd3
File tree
2 files changed
+27
-0
lines changed- tools/clang
- lib/SPIRV
- test/CodeGenSPIRV
2 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2926 | 2926 | | |
2927 | 2927 | | |
2928 | 2928 | | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
2929 | 2940 | | |
2930 | 2941 | | |
2931 | 2942 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments