<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/124579>124579</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL][SPIRV] Add subpass inputs
</td>
</tr>
<tr>
<th>Labels</th>
<td>
HLSL,
SPIR-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
s-perron
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
s-perron
</td>
</tr>
</table>
<pre>
Subpass inputs are a Vulkan specific resource type. They are useful for mobile platforms, and we want to add them the clang as well. The problem is that in DXC, they were not added in the vk namespace, and they should be. Here are the steps to implement this feature:
- [ ] Update the spec to more `SubpassInput` to the `vk` namespace.
- [ ] Design how the resource will be represented in the AST
- [ ] Add the type to HLSLExternalSemaSource.cpp
- [ ] Implement the `vk::input_attachment_index` attribute.
- [ ] Generate the correct target type for the subpass input
- [ ] Generate intrinsics to do the subpass load.
- [ ] Resubmit the tests removed in https://github.com/llvm/llvm-project/pull/122355 that relate to subpass inputs.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVE2P2zYQ_TXUZbCCTOtjfdDBu66bBXIo4nTRW0CRY4tdiiTIoZ399wXpdRIXvRQwbFic9-a9N0OJGPXJIo6se2KcxwePITjLOGfdrhKJZhfG29Nqcup9PKTJixhBW58ogggIAl6TeRMWokepj1pCwOhSkAj07rGGrzO-l8oU8ZgMHF2AxU3aIHgj6OjCEhl_BmEVXBAuwhKQA6EU0IxL_gJphD2BiHBBYwol-OAmgwvoCDQLAm1h99dzJqLc8IIBwTrKPKjyaeY5v4EVC0YvJN56lvI4u2QUTFjDp4zMejMgEvqY5ejFG1wwa5t1hCMKSgHZesua_HkA1j0B63bwp1eCPsAeZcYuLiCwvvlI7yWHx_omH-Uy1jfnt_z_h7T6jnGHeU4wu0sp_xHvRRsDU37gA0a09NPn9vD1jmJ7DbNMJLf99Pnw-bfvhMEKc8BFHApjLb2_g738Yvqmc71l622Z_zdBJOScz79pq_B79iCIgp4S_cvD72gx3HKRLgSUBCTCCekqKm9FyezXDftvCm0paBu1LINR7g5nnFD3rb9gTNOirx4II0UIuLjzNa2ZyMdsiu8Z3580zWmqpVsY3xtzvv08-OD-RkmM730yhvH9ivN1111XL6Ap1ty9-lhXalyrzXojKhxXw3rYbFre9tU8opTToI6taPjQPHbt4-NjL484DNiJdt2qSo-84V2z4sOqXzVtX6_aTaPavhOqbTo-NaxtcBHa1Fle7cKp0jEmHFe87YZNZcSEJn7c7DztfKv5M-P88MfLl4fXj0sexuJuSqfI2sboSPEnIWky5eVQ8N2OdU8Z_HpbqHuzVQpm_N9pFtGx5Fl0n0f-TwAAAP__b0KCJQ">