Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / hlsl.global-const-init.frag
1
2 cbuffer CB {
3     float4 foo;
4 };
5
6 static const float4 bar = foo; // test const (in the immutable sense) initializer from non-const.
7
8 static const float2 a1[2] = { { 1, 2 }, { foo.x, 4 } }; // not entirely constant
9 static const float2 a2[2] = { { 5, 6 }, { 7, 8 } };     // entirely constant
10
11 float4 main() : SV_Target0
12 {
13     return bar;
14 }