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

    <tr>
        <th>Summary</th>
        <td>
            [DirectX] Resources in PSV0 need to be in a specific order to match validation
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:DirectX
      </td>
    </tr>

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

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

<pre>
    DXC and the DXIL validator expect resources in a DX container to be specifically ordered CBuffers, Samplers, SRVs, and then UAVs. We currently do not match this order, which causes us to fail the validator if cbuffers, SRVs, and UAVs are all present in a shader.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkc2O2yAQx58GX0ZrGexs7AOHbKxIlXqodtU01wHGMS0BC3DavH3lxKvNaZDQzP_jhynZsyeSbPPGNn2Bcx5DlCqcPcVCBXOT_WkP6A3kkaA_ffsOV3TWYA4R6N9EOkOkFOaoKYH1gNCfQAef0XqKkAMogjSRtoPV6NwNQjQUycD-bR4GiomJPXzgZXKf7_fjfa6iHn7ujqmEXwR6jpF8djcwAXzIcMGsR8ijTY-ry9rf0eoRNM6JEsxpcTCgdXf_X9btAFo96T9pLnKAkQCdgylSIp8fydKIhmJZGFmbru6wIMm3Da8F57wtRmmw3TTCNNSheqWKdzho3Xa4rV9p2yleWCkqsanqals1vK3bkleKOFJNr9tB8JZYU9EFrSudu17KEM-FTWkmyetK1KJwqMilOywhFOo_5A2rd72NpPOJCbEwjHJZflHzObGmcjbl9HUu2-zutD93Nj28P_P78XGswBOZFd0j-Mrv0fLy82h-7dMGX8zRyTHnKbF6x8SBicPZ5nFWpQ4XJg6LgXW8TDH8Jp2ZONzDJSYOa76rFP8DAAD__1Nv2kc">