Commit 5fbf9f6
Allow const vars in attribute parameters
HLSL does not allow const vars to be evaluated in integer constant
expressions - this change relaxes this restriction in the case of
attribute integer parameter values. Specifically, a const var with
integer constant expression initializer is accepted, and the value
of the initializer is used as the value of the attribute parameter.
This (expermental) behavior may be useful in cases where Vulkan
specialization constants are used as an attribute parameter value.1 parent 5f18e2b commit 5fbf9f6
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13164 | 13164 | | |
13165 | 13165 | | |
13166 | 13166 | | |
| 13167 | + | |
| 13168 | + | |
| 13169 | + | |
| 13170 | + | |
| 13171 | + | |
| 13172 | + | |
| 13173 | + | |
| 13174 | + | |
| 13175 | + | |
| 13176 | + | |
| 13177 | + | |
13167 | 13178 | | |
13168 | 13179 | | |
13169 | 13180 | | |
| |||
0 commit comments