xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.function.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1float4 fun0()
2{
3    return 1.0f;
4}
5
6float4 fun2(float4 const col)
7{
8    return (1.0f, 2.0f, 3.0f, 4.0f);
9}
10
11uint fun3(const float4 col)
12{
13	return 7;
14}
15
16float4 fun4(uint id1, uniform uint id2)
17{
18    return id1 * id2;
19}
20
21float4 fun1(int index)
22{
23    uint entityId = fun3(fun2(fun0()));
24    return fun4(entityId, entityId);
25}
26
27int main() : SV_TARGET
28{
29    return fun1;
30}