<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/122663>122663</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DirectX] Implement shader flag analysis for EnableRawAndStructuredBuffers
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:DirectX
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
bogner
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bogner
</td>
</tr>
</table>
<pre>
If Raw or Structured buffers are used, the EnableRawAndStructuredBuffers shader flag must be set. We can implement this by looking at the resource kind of the return type of llvm.dx.resource.handlefrom intrinsics.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8kT9v2zAQxT8NtRwiSJRERQMHp66BrOnQrvxzklhTpMEjk_rbF3blplMnAg-_O957TxG5JSBKNrwwznVcAibGORuOlSp5jUn-0Sod7VW-zvCmPiAm-JZTMbkktKDLPGMiUAmhEFrGv0BeEb4GpT2-qY9DsJ_4y07TqiwmmL1aYCuUQSMQ5hq-IxgVwG0XjxuGDHl1BPoKPsazCwuofF-fkGJJBuHsgoU472IuKUC-XvAmef--1fZX_WDrVQXrcU5xAxdycoGcobqysrNTN6kKZTt2Yuyb51ZUqxz6CZVWo-mRD_hshZkm0eE0i7Efu6mvnOQNH5q27Zq-aVpRT6MSotXYtzfMWNY3uCnn6_spMS2VIyooW86F6CqvNHp6pK_MGYNl3eHoEpr8Yy8iydvwky4Lsb7xjjJ9rssu-3t9j5nhCK9_s_s3ZRWUv5IjmGP6fzlVSV6uOV-IdQfGT4yfFpfXomsTN8ZPt8_35-mS4k80mfHT3Rgxftq9vUv-OwAA__85Hc1W">