Commit 526c1cd
committed
Support HLSL matrix initializers
fixes #159434
In HLSL matrices are `matrix_type` in all respects except that they
support a constructor style syntax for initializing matrices. This
change adds a translation of vector constructor arguments into
initializer lists.
This supports the following HLSL syntax:
(1) HLSL matrices support constructor syntax
(2) HLSL matrices are expanded to constituate components in constructor1 parent 738e927 commit 526c1cd
File tree
6 files changed
+563
-23
lines changed- clang
- include/clang
- Basic
- Sema
- lib/Sema
- test
- AST/HLSL
- SemaHLSL/BuiltIns
6 files changed
+563
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6543 | 6543 | | |
6544 | 6544 | | |
6545 | 6545 | | |
6546 | | - | |
| 6546 | + | |
6547 | 6547 | | |
6548 | | - | |
| 6548 | + | |
6549 | 6549 | | |
6550 | 6550 | | |
6551 | 6551 | | |
| |||
11086 | 11086 | | |
11087 | 11087 | | |
11088 | 11088 | | |
11089 | | - | |
11090 | | - | |
| 11089 | + | |
| 11090 | + | |
11091 | 11091 | | |
11092 | 11092 | | |
11093 | 11093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
208 | | - | |
209 | | - | |
| 212 | + | |
| 213 | + | |
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
| |||
536 | 540 | | |
537 | 541 | | |
538 | 542 | | |
539 | | - | |
| 543 | + | |
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
543 | 547 | | |
544 | 548 | | |
545 | 549 | | |
546 | 550 | | |
547 | | - | |
| 551 | + | |
548 | 552 | | |
549 | 553 | | |
550 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
0 commit comments