Semantic test left over from other source languages is removed, since this is permitted by HLSL.
Also, to support the functionality, a targeted test is performed for this case and it is
turned into a EvqGlobal qualifier to create an AST initialization segment when needed.
Constness is now propagated up aggregate chains during initializer construction. This
handles hierarchical cases such as the distinction between:
static const float2 a[2] = { { 1, 2 }, { 3, 4} };
vs
static const float2 a[2] = { { 1, 2 }, { cbuffer_member, 4} };
The first of which can use a first class constant initalization, and the second cannot.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| AST.FromFile.cpp | Loading commit data... | |
| BuiltInResource.FromFile.cpp | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| Config.FromFile.cpp | Loading commit data... | |
| HexFloat.cpp | Loading commit data... | |
| Hlsl.FromFile.cpp | Loading commit data... | |
| Initializer.h | Loading commit data... | |
| Link.FromFile.Vk.cpp | Loading commit data... | |
| Link.FromFile.cpp | Loading commit data... | |
| Pp.FromFile.cpp | Loading commit data... | |
| README.md | Loading commit data... | |
| Remap.FromFile.cpp | Loading commit data... | |
| Settings.cpp | Loading commit data... | |
| Settings.h | Loading commit data... | |
| Spv.FromFile.cpp | Loading commit data... | |
| TestFixture.cpp | Loading commit data... | |
| TestFixture.h | Loading commit data... | |
| main.cpp | Loading commit data... |