<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/115614>115614</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL][DirectX] Fix updateBufferCounter signature
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
joaosaffran
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
joaosaffran
</td>
</tr>
</table>
<pre>
`updateBufferCounter` needs to return uint with the pre-incremented or pre-decremented counter value:
See https://godbolt.org/z/rGhWbcrY5
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-rwstructuredbuffer-incrementcounter
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskruO3DoMhp-GbgQPLMnyrAsVZ8_ASbHdFklKXeixFrI00GUnydMH9hqYJEhjC6RI8f9-qpzdNSBKEM_A2FtUMat5TioAYyAujapliUn-lmh0tD8kDF29WVXwuc4zpv9jDQUTDB0JiDaTEknCUlMg1YVC7q4spCxIbglbF0zCFUNBS2LaQxYfIfPRi7wrXxH4f9BdoDu-r4hkKeWWtzibgE3XaHX05RTTFdj0E9iUPi1ftEnfxEfJn9c9qhROqzMp5jiXk4krsAlDWzOw6e6CjffjxBmwybqEpnC7-OyBTXkVbdRvaEqb7rmkakpNaPUO4SHskNBYye3IR9WgpGdO6bk_U94schTIZ33WM4qx44zb0ei5G7hVph-H2TZOso71lHYjPQsq-EkbpPzJPmk-6FFQA32Hq3L-5P37uolvXM4VJaVioH3jlUafD1cD3smePTxNcitqdb1m6DvvcsmPNsUVv6_D55fXFxAXEM-XncFXEBcyue_kH76TbYvUhqKpycu_HHJlqfogvb1z_NpbihtJYNM-3Yb9GP9dsl8BAAD__xe73IY">