Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
deqp-deps
/
glslang
/
b2b3d81e9bb0603f8b59e470aec3b3b513c10378
/
.
/
Test
/
hlsl.staticFuncInit.frag
blob: f61c5661a1ed4b3131951890b4e1b0a6eadc5910 [
file
] [
log
] [
blame
]
static
float
x
=
1.0
;
float
f1
()
{
static
float
x
=
2.0
;
x
+=
10.0
;
return
x
;
}
float
f2
(
float
p
)
{
static
float
x
=
7.0
;
x
+=
p
;
return
x
;
}
float4 main
()
:
SV_TARGET
{
return
x
+
f1
()
+
f1
()
+
f2
(
5.0
)
+
f2
(
x
);
}