<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/130227>130227</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL] Resource binding table mismatched type for SRV resources
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hekota
</td>
</tr>
</table>
<pre>
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
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy8lE1vm0wQxz_NcBnFWnZ5PXAw5kFPlKgHO0pzXWAx2wJr7Yvb5NNXYBI3cdS0qtTRWh6b_c_Lj9FwY-R-FCKDMIew8LizndJZJ74qy71KNY_Z9Yi2E7gVRjldC8zl2Mhxb7BWwyBGi5ZXvcDiYYMHLUdr0D4eBEJErPhunRYQEWyVxt32HvUSxeC3TvYCNz0f9886iMhuew8RWQFZA1kXDxtgkwMRWQ5ZA8sva1musXy58IkPAj-yu6lMLJUeuH35s5DDybku8P_b3e2cAnGj3GiX4Fe_NLx08Z3H-K5qyVDKo8CFHqKx2tXnCjXQUi0dkFcN2RD9V7RmYDPiv-H4IafZfoKF_4zXGdnv2TSCzzz_gONrfzfrnRZN7tpWaGAbOdoA2H-nFwdsjVrspbFCA01sCDQ9Id1-vlDkrn0rcPRFMJ0wH91gOy14Y4AmAdCNf_qkEBZA1kclGxy4HIEmQFOEeJJOjeSuhTAnEBYIrJirW34v4ePiTW-dtYd5CmgJtNyrplK9XSm9B1o-TcDubpKbiFdPXpOxJmUp90Tmx4HP_CRJA6_LkroSqYijpCINC6jfsiribcJ8yuqYC-LJjBIaEkZiwgKfBStGojgNWBISJto4jCAgYuCyX_X9cZhye9IYJzKfEUpjr-eV6M28sCidpg4onVaXzqb7V5XbGwhIL4015whW2n5ecrMgLM6jX51Gf9ligzQDt3UnmtMWu9hbntN99oaStJ2rVrUagJZTxuXr6qDVF1FboOXcgAFaLj0cM_ojAAD__3okdNo">