<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/116710>116710</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[HLSL] Constrain matrix sizes using concepts
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:diagnostics,
HLSL
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
pow2clk
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pow2clk
</td>
</tr>
</table>
<pre>
HLSL matrices are limited to a maximum size of 4 in either dimension while the matrix extension allows for much larger sizes. Using concepts in the template declarations of the matrices similar to how resource types are being constrained in #116413 allows a language-specific limitation with friendly diagnostics.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUks9unDAQxp_GXEZZ4TG7hAOHNNGqh9yqPoAxA0xrY-Qx2aRPX0HY_jkhYfn3fTM_WxEeZ6JWnb8oxCXe0PmfClGdXwq75imm9vhZdLH_aL--fnuFYHNiRwI2EXgOnKmHHMFCsO8c1gDCvwjiABXwDMR5ogQ9B5qF4wy3iT1BnuiT9A70no8j6328CQwxQVjdBN6mkdLOkxN8F55HcHF2tGTZ2BskU1i8zQQ9OW-TzRxn2dL_JGxdhQN7m7aeU7xBIolrcgT5Yzkm6eigS06WZ-q3AIVG60ulzb2aBW_ncbUjPchCjgd2nzvYc-HGeYIhMc29_4Ce7ThHyezkVPSt6RvT2IJaXRvd1Ih4LqZ2cF3T1FoPhuhiL91jReVABktyDbmuKrjFEiut9SMaNNX5ZOtHrV1tSle7silRVSUFy_7k_Vs4xTQWLLJSq_Wl1mXhbUdeDsduq6_M0z_VNt_4rBA3u4f81G6sh24dRVWlZ8nyl545-_3N7BfOL_B8X9rd6C4M1v98FWvy7ZTzIso8KbwqvI6cp7U7uRgUXjf88XlYUvxBLiu87pOIwusxzFuLvwMAAP__a9vrZQ">