<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/124558>124558</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL][SPIR-V] Add RWStructutredBuffer type support for SPIR-V
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
s-perron
</td>
</tr>
</table>
<pre>
The HLSL structured buffers are an HLSL type that need to be supported in the backend.
The design for implementing this resource is in https://github.com/llvm/wg-hlsl/pull/98.
The tasks to accomplish are:
- [ ] Add the desired target type to the SPIR-V backend. We want to use `spirv.Type` to represent the resource.
- [ ] Update clang to use the correct target type, with the block decoration.
- [ ] Update the expansion of `@llvm.spv.resource.getpointer` to handle storage buffers. They have one less level of indirection than a storage texel buffer.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEk09v2zAMxT-NfCFiOIqVPwcfkhXBBvQwtN16liXG0qpIgkQnzbcf5KRZBwzYyYBJPf4e8ShztoNH7JjYMfFQyZFMSF2eRUwp-KoP-tK9GISvj8-PkCmNisaEGvrxcMCUQSYE6a9lukQEMpLAI2qgAD1CHmMMiVCD9UAGoZfqDb2uWbNlzbZoaywQcAgJ7DE6PKIn6wcgYzMkzGFMCsHmomCIYmaLLeN7xveDJTP2tQpHxvfOncrnPMyMy47xfRxd-WzWn2aRzG-5oEmlwjE6m03xUBSnnhkwsQMmHmCr9cRb6IpjkmlAupkMU-n5-7en2c-7I3hFOEtPpTxmBLZscrTpVL9cIrJlU_4njAkzliaDd3P1X5N_RC0JQTlZlnDVKt0qpISKPpMw_gXOlsx1sy6oN9CoQpJkg_-namnE9yh9tsFDOBRK1jZleXWOp_qONCDFYD1huqEb6bVDyBSSHPAjATW8GLyAkSeE4BEc5gwOT-iKuPXaFuYyi4z0IO_vCd_R3VTqSncLvVlsZIXdfLVYbTZN264r0-mWH7hu1qoVGtWi7ZetFOuDVpwLzdumsh1vuGjmfDUXzYqv64VaLJc93yi5xPmhFaxt8CitqyeLIQ2VzXnEbs5bIdaVkz26POWfc49nmKqM83IOqSuPZv045LIjmyn_kSFLbjqcEn4mHpjYXQPxkZ6n1-frwVBCvZuMXuNzu4kp8dcn1Zhc9_9sTzQxhV-oiPH9hJoZ39-8nDr-OwAA__-mVESo">