In HLSL array sizes need not be provided explicitly in all circumstances.
For example, this is valid (note no number between the [ ]):
// no explicit array size
uniform float g_array[] = { 1, 2, 3, 4, 5 };
This PR does not attempt to validate most invalid cases.
A new test is added to verify the resulting linker objects.
| 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... | |
| Hlsl.FromFile.cpp | Loading commit data... | |
| Initializer.h | 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... |