<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/138274>138274</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL][SPIRV] Implement CBuffers in CommonSPIRTargetCodeGenInfo::getHLSLType
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL,
backend:SPIR-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
s-perron
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
s-perron
</td>
</tr>
</table>
<pre>
At this time, if you use a CBuffer in your HLSL code while targeting SPIR-V, there will be an error. The SPIR-V type for a CBuffer has not been implemented yet. This should be implemented according to the [design doc](https://github.com/llvm/wg-hlsl/blob/main/proposals/0018-spirv-resource-representation.md).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEksuO4yoQhp8Gb0q27CIk8cKLXORzWurFaLrVezBlmxkMFuBu5e1HRImmd7NCKqr-uny_jNFMjqhj4swQY7lSCN4xRCauhdzS7EP3jBbK61t3SpBmEyGZhRhewIxw8xtskUDC5byNIwUwLgcD_P_69gqD1wRfs7EESYaJknETvP14-Vl-ZIE0UyD4MtaCIpAOcrNQwftMjyxIt5Vg9OFbh1lGcD6BInJgltXSQi6RhhulXGsixNlvVmfR7_9yGHzQeYTkc29g4qwpnwG0H5i4MjzOKa2R8RPDnmE_mTRvqhr8wrC39jM_X1M522gZ9sp6xbBfpHEM-zX41UdpI8O-rptjGVcTPstA0W9hoDLQGiiSSzIZ76pFM2yrQndct7yVBXXNYbdvWhQHXszdnovjsG_1qNSBDxJ1o2RDAvlIbc3FUJgOaxS1qLHh2HJeySMp1MdhpFEqsW_ZrqZFGlvluSsfpsLEuFHX8CMedoWVimx80M-wMnm8MEQlh9_kNOOnJ6m7JUKXhUq1TZHtamtiin-lk0n2bqW7krgycc7FH0xc4eWJ4EkwZpNc_LJ4l5Pe7864eE3_kXtxo8_n56eJUhZ7v61UbMF2_yZzn28N_hcNiWF_XzfTeGz82eGfAAAA___6Dvay">