HLSL: allow implicit array sizing.
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.
Showing
- Test/baseResults/hlsl.array.implicit-size.frag.out 264 additions, 0 deletionsTest/baseResults/hlsl.array.implicit-size.frag.out
- Test/hlsl.array.implicit-size.frag 31 additions, 0 deletionsTest/hlsl.array.implicit-size.frag
- gtests/Hlsl.FromFile.cpp 1 addition, 0 deletionsgtests/Hlsl.FromFile.cpp
- hlsl/hlslGrammar.cpp 20 additions, 9 deletionshlsl/hlslGrammar.cpp
Loading
Please register or sign in to comment