Issue 130227
Summary [HLSL] Resource binding table mismatched type for SRV resources
Labels HLSL
Assignees
Reporter hekota
    In the Resource Bindings comment table DXC prints type `texture` for SRV resources while Clang prints `SRV`.

DXC:
```
; Resource Bindings:
;
; Name                                 Type  Format         Dim      ID HLSL Bind  Count
; ------------------------------ ---------- ------- ----------- ------- -------------- ------
; Five texture  struct         r/o      T0             t5 1
````
Clang:
```
; Resource Bindings:
;
; Name Type  Format         Dim      ID      HLSL Bind     Count
; ------------------------------ ---------- ------- ----------- ------- -------------- ---------
;                                       SRV  struct r/o      T0             t5 1
```
```
StructuredBuffer<int4> Five : register(t5);
RWBuffer<int4> Buf : register(u2);

[numthreads(4,1,1)]
void main() {
    Buf[0] = Five[0];
}
```
https://godbolt.org/z/oTK8K6abz
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to