<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/75676>75676</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Add diagnostics for HLSL resource containers with invalid element types
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            HLSL
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            bogner
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          bogner
      </td>
    </tr>
</table>

<pre>
    There's a specific closed set of types that are valid as element types for an HLSL resource, which includes int/uint of sizes 16/32/64, half, float, and double. If someone writes `RWBuffer<MyCustomType>` we should reject it and give the user a nice diagnostic.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUkU-P2yAQxT8Nvow2wmObbA4-7J9arbS9tCv1jGFsU2GIGNgo_fSVnUjtnh4C5mne-2lmNweiXnTPAnGMc6AkEEX3WumSl5j62101Rnvt3xdKJPDIoIHPZNzkDBgfmSwwZYgT5OuZGPKiM-hE8KG9s6AZyNNKId_fp5hAB_j69vMNEnEsyZDAF7gszizggvHFEoMLWeBQXNit2f0hhloJHBoUOKh2G1m0nzadfNR5O-hgwcYyejrAtwk4rhQDwSW5TAxCyR-_nss0URLNy_frS-Ec1_frmUTzRSgJFwJeYvEWEv0mk8Hl3XJ2HwR5IShMCTQEZwis03OInJ05VLZv7Kk56Yr6-ihRPR6lVNXSWzPiWI9GWURL3SNNSuKmTdu2SlLlepTY1FgrKRvVqoPqTqe2aRS1ONZKTqKVtGrnD95_rIeY5soxF-qPnTqqyuuRPN8Jbo3e-aV--_4wlplFK73jzP8Msst-p74PdK_wZO1_aW6EPuEBE0PWLlBiuLi8UbrB_US2Ksn3S85nFs2TwEHgMLu8lPFg4ipw2Ba4y8M5xa1ggcMehwUOe6K_AQAA___9sNlC">