<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/135907>135907</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL] Consider an off by default warning for implicit bindings
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bogner
</td>
</tr>
</table>
<pre>
It can be quite easy to miss a binding or two when using explicit bindings, so it would be helpful to users if they could opt in to a warning if they mess up and have a few implicit bindings sprinkled into their shaders unintentionally.
We should consider adding a warning `-Whlsl-implicit-binding` that points out any implicit bindings in compiled shaders.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsUj1v2zAQ_TXUcrBB0ZYVDRrSBEYLZOuQmRJP5rUUqfKOcf3vCwlOArSdBIjv3heeZaZLROxV80U1z5Ut4lPuh3SJmKshuVv_TWC0EQaEX4UEAS3fQBLMxAwWBoqO4gVSBrkmuHqMUHj9g7-XQCPJO4SVeQJOQALXVIJbKT2GZSph5SuMmYEmEI83GDdEWgQorq8WrjbHlfYdMSMzlAVsdODtG4KFCa9A81-qwEum-DOgA4qS1mPKwN66Va9EioJRKEUbwm2v9KPSj68I7DcHY4pMDjNYt8X89KFOevfqA4fdu-TuLqlOGsRbgSVRFIZUBGy8_ccaRRjTvNBq7u5oX7n-4LpDZyvs6_Z4bNu2e6gr3-PYtm1jTdu4cRwe7MnZh3pqJqunU4PYVdQbbRp9rE_6eDjoem-xc21Tazd1ruuaRh01zpbCPoS3eZ_ypSLmgn19aDrdVsEOGHibgjFfX76_KGPWUeR-xe-GcmF11IFY-JNBSMI2n-2geYanj8YipGmC4QYOJ1uCfFQ3pfxvGVXJofciC6vDozJnZc4XEl-G_ZhmZc6r4v2zW3L6gaMoc94CsDLne4a33vwJAAD__2fD97E">