projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git]
/
Test
/
web.array.frag
1
#version 310 es
2
3
precision highp float;
4
5
float g4[4];
6
float g5[5];
7
8
layout(location = 0) out vec2 colorOut;
9
10
float[4] foo(float a[5])
11
{
12
return float[](a[0], a[1], a[2], a[3]);
13
}
14
15
void main()
16
{
17
g4 = foo(g5);
18
19
if (float[4](1.0, 2.0, 3.0, 4.0) == g4)
20
;
21
22
float u[5];
23
foo(u);
24
25
colorOut = vec2(g4.length(), g5.length());
26
}